	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetLayoutID
_GetLayoutID:                           ## @GetLayoutID
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CCH_LAYOUT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-52(%rbp), %r8
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, -64(%rbp)
	movl	-52(%rbp), %edi
	leaq	-64(%rbp), %r9
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_RegQueryValueEx
	movq	%rax, %r14
	movq	(%r15), %r13
	movl	-52(%rbp), %edi
	callq	_RegCloseKey
	cmpq	%r13, %r14
	jne	LBB0_2
LBB0_3:
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-52(%rbp), %r8
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, -64(%rbp)
	movl	-52(%rbp), %edi
	leaq	-64(%rbp), %r9
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_RegQueryValueEx
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_StringCchCopy
LBB0_6:
	movl	-52(%rbp), %edi
	callq	_RegCloseKey
	jmp	LBB0_8
LBB0_7:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_StringCchCopy
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCH_LAYOUT_ID,4,2              ## @CCH_LAYOUT_ID
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Keyboard Layout\\Preload"

	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Keyboard Layout\\Substitutes"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_GetLayoutID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetLayoutID
_GetLayoutID:                           ; @GetLayoutID
	.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, #32
	mov	x19, x2
	mov	x20, x1
	mov	x23, 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	w8, w8, #1
	lsl	x22, x8, #2
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x7fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x26, _HKEY_CURRENT_USER@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HKEY_CURRENT_USER@GOTPAGEOFF]
	ldr	w24, [x26]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh12:
	adrp	x27, _KEY_QUERY_VALUE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _KEY_QUERY_VALUE@GOTPAGEOFF]
	ldr	w3, [x27]
	sub	x4, x29, #100
	mov	x0, x24
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh14:
	adrp	x24, _ERROR_SUCCESS@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	stur	x22, [x29, #-96]
	ldur	w0, [x29, #-100]
	sub	x5, x29, #96
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_RegQueryValueEx
	mov	x23, x0
	ldr	x28, [x24]
	ldur	w0, [x29, #-100]
	bl	_RegCloseKey
	cmp	x23, x28
	b.ne	LBB0_8
LBB0_2:
	ldr	w23, [x26]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	w3, [x27]
	sub	x4, x29, #100
	mov	x0, x23
	mov	w2, #0
	bl	_RegOpenKeyEx
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	stur	x22, [x29, #-96]
	ldur	w0, [x29, #-100]
	sub	x5, x29, #96
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, x20
	bl	_RegQueryValueEx
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_StringCchCopy
LBB0_5:
	ldur	w0, [x29, #-100]
	bl	_RegCloseKey
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_StringCchCopy
LBB0_7:
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CCH_LAYOUT_ID,4,2              ; @CCH_LAYOUT_ID
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Keyboard Layout\\Preload"

	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Keyboard Layout\\Substitutes"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_GetLayoutID
.subsections_via_symbols
