	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function GetLayoutCount
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_GetLayoutCount:                        ## @GetLayoutCount
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -84(%rbp)                 ## 4-byte Spill
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CCH_LAYOUT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	$16, -68(%rbp)
	movl	-72(%rbp), %edi
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	leaq	-88(%rbp), %r9
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_RegEnumValue
	addq	$16, %rsp
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$16, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %r13d
	leaq	-64(%rbp), %rsi
	leaq	-68(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_wcscmp
	cmpq	$1, %rax
	adcl	$0, %ebx
	movl	$16, -68(%rbp)
	movl	-72(%rbp), %edi
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%r13d, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	leaq	-88(%rbp), %r9
	callq	_RegEnumValue
	movq	%r15, %rsi
	addq	$16, %rsp
	incl	%r13d
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -68(%rbp)
	movl	-72(%rbp), %edi
	movq	%rsi, %r15
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movq	%r14, %r9
	callq	_RegQueryValueExW
	movq	%r12, %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$4, %eax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$-3, %eax
	shlq	$2, %rax
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%rax, %rdx
	callq	_memcpy
	jmp	LBB0_5
LBB0_6:
	movl	-72(%rbp), %edi
	callq	_RegCloseKey
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_7:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCH_LAYOUT_ID,4,2              ## @CCH_LAYOUT_ID
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	75                              ## 0x4b
	.long	101                             ## 0x65
	.long	121                             ## 0x79
	.long	98                              ## 0x62
	.long	111                             ## 0x6f
	.long	97                              ## 0x61
	.long	114                             ## 0x72
	.long	100                             ## 0x64
	.long	32                              ## 0x20
	.long	76                              ## 0x4c
	.long	97                              ## 0x61
	.long	121                             ## 0x79
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	116                             ## 0x74
	.long	92                              ## 0x5c
	.long	80                              ## 0x50
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	108                             ## 0x6c
	.long	111                             ## 0x6f
	.long	97                              ## 0x61
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.no_dead_strip	_GetLayoutCount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetLayoutCount
_GetLayoutCount:                        ; @GetLayoutCount
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _CCH_LAYOUT_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCH_LAYOUT_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w23, w8, #1
	lsl	x8, x23, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh13:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _KEY_QUERY_VALUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	sub	x4, x29, #108
	mov	w2, #0
	bl	_RegOpenKeyExW
	mov	w22, #0
Lloh21:
	adrp	x26, _ERROR_SUCCESS@GOTPAGE
Lloh22:
	ldr	x26, [x26, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	mov	w27, #16
	stur	w27, [x29, #-116]
	ldur	w0, [x29, #-108]
	sub	x2, x29, #104
	sub	x3, x29, #116
	sub	x5, x29, #112
	mov	w1, #0
	mov	x4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumValue
	mov	w22, #0
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	w22, #0
	lsl	w28, w23, #2
	add	x23, x20, #16
	mov	w24, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_wcscmp
	cmp	x0, #0
	cinc	w22, w22, eq
	stur	w27, [x29, #-116]
	ldur	w0, [x29, #-108]
	sub	x2, x29, #104
	sub	x3, x29, #116
	sub	x5, x29, #112
	mov	x1, x24
	mov	x4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumValue
	ldr	x8, [x26]
	add	w24, w24, #1
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stur	w28, [x29, #-116]
	ldur	w0, [x29, #-108]
	sub	x1, x29, #104
	sub	x5, x29, #116
	mov	x2, #0
	mov	x3, #0
	mov	x4, x20
	bl	_RegQueryValueExW
	mov	x0, x20
	bl	_wcslen
	cmp	w0, #4
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, #3
	lsl	x2, x8, #2
	mov	x0, x21
	mov	x1, x23
	bl	_memcpy
	b	LBB0_3
LBB0_6:
	ldur	w0, [x29, #-108]
	bl	_RegCloseKey
LBB0_7:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x22
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CCH_LAYOUT_ID,4,2              ; @CCH_LAYOUT_ID
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	75                              ; 0x4b
	.long	101                             ; 0x65
	.long	121                             ; 0x79
	.long	98                              ; 0x62
	.long	111                             ; 0x6f
	.long	97                              ; 0x61
	.long	114                             ; 0x72
	.long	100                             ; 0x64
	.long	32                              ; 0x20
	.long	76                              ; 0x4c
	.long	97                              ; 0x61
	.long	121                             ; 0x79
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	116                             ; 0x74
	.long	92                              ; 0x5c
	.long	80                              ; 0x50
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	108                             ; 0x6c
	.long	111                             ; 0x6f
	.long	97                              ; 0x61
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.no_dead_strip	_GetLayoutCount
.subsections_via_symbols
