	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetLayoutName
_GetLayoutName:                         ## @GetLayoutName
	.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	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%rbx), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_CCH_LAYOUT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, %rdi
	callq	_ARRAYSIZE
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_GetLayoutID
	movq	_FALSE@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_ARRAYSIZE
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_StringCchPrintf
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_21
## %bb.2:
	movl	%r14d, -56(%rbp)
	movl	-52(%rbp), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	leaq	-56(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %r8d
	callq	_RegQueryValueEx
	cmpq	(%r15), %rax
	jne	LBB0_17
## %bb.3:
	cmpb	$64, (%r13)
	jne	LBB0_17
## %bb.4:
	movq	%r13, %rdi
	callq	__tcslen
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	cltq
	movb	(%r13), %cl
	negq	%rax
	movl	$2, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, -2(%r13,%rbx)
	leaq	(%rax,%rbx), %rdx
	incq	%rdx
	incq	%rbx
	cmpq	$2, %rdx
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$44, %cl
	movzbl	-1(%r13,%rbx), %ecx
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$45, %cl
	jne	LBB0_12
## %bb.8:
	movq	%r13, %rdi
	callq	__tcslen
	incl	%eax
	cltq
	cmpq	%rax, %rbx
	jae	LBB0_11
## %bb.9:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%r12), %eax
	movb	%al, (%r14)
	incq	%r12
	movq	%r13, %rdi
	callq	__tcslen
	incl	%eax
	cltq
	incq	%r14
	cmpq	%rax, %r12
	jb	LBB0_10
LBB0_11:
	movb	$0, -3(%r13,%rbx)
LBB0_13:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ARRAYSIZE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_ExpandEnvironmentStrings
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_LoadLibrary
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rax, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	__ttoi
	movl	%eax, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ARRAYSIZE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_LoadString
	testq	%rax, %rax
	je	LBB0_16
## %bb.23:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_StringCchCopy
	movl	-52(%rbp), %edi
	callq	_RegCloseKey
	movq	%r12, %rdi
	callq	_FreeLibrary
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_21
LBB0_16:
	movq	%r12, %rdi
	callq	_FreeLibrary
LBB0_17:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -56(%rbp)
	movl	-52(%rbp), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	leaq	-56(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueEx
	movl	-52(%rbp), %edi
	cmpq	(%r15), %rax
	jne	LBB0_18
## %bb.19:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_20
LBB0_18:
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_20:
	callq	_RegCloseKey
LBB0_21:
	movl	(%r12), %eax
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_CCH_LAYOUT_ID,4,2              ## @CCH_LAYOUT_ID
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\%s"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Layout Display Name"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"Layout Text"

	.no_dead_strip	_GetLayoutName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetLayoutName
_GetLayoutName:                         ; @GetLayoutName
	.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	x20, x2
	mov	x19, x1
	mov	x26, x0
	mov	x28, 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	x12, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w24, [x12]
	mov	x9, x24
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x12, x9, #0x1fffffff0
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x24
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
	mov	x9, x24
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
Lloh13:
	adrp	x8, _CCH_LAYOUT_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CCH_LAYOUT_ID@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	mov	x0, x27
	bl	_ARRAYSIZE
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_GetLayoutID
	cbz	w0, LBB0_17
; %bb.1:
	mov	x0, x25
	bl	_ARRAYSIZE
	mov	x26, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	mov	x3, x27
	bl	_StringCchPrintf
Lloh20:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _KEY_QUERY_VALUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	sub	x4, x29, #92
	mov	x1, x25
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh26:
	adrp	x26, _ERROR_SUCCESS@GOTPAGE
Lloh27:
	ldr	x26, [x26, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh28:
	adrp	x25, _FALSE@GOTPAGE
Lloh29:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.2:
	stur	w24, [x29, #-96]
	ldur	w24, [x29, #-92]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	sub	x5, x29, #96
	mov	x0, x24
	mov	x2, #0
	mov	x3, #0
	mov	x4, x23
	bl	_RegQueryValueEx
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.3:
	ldrb	w8, [x23]
	cmp	w8, #64
	b.ne	LBB0_19
; %bb.4:
	mov	x0, x23
	bl	__tcslen
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.5:
	mov	x24, #0
	sxtw	x8, w0
	ldrb	w9, [x23]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w10, [x23, x24]
	add	x11, x24, #1
	mov	x9, x10
	mov	x24, x11
	cmp	x8, x11
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x23, x24
	ldrb	w10, [x10, #1]
	cmp	w9, #44
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w10, #45
	b.ne	LBB0_6
; %bb.9:
	stur	x19, [x29, #-104]               ; 8-byte Folded Spill
	add	x27, x24, #2
	mov	x0, x23
	bl	__tcslen
	add	w8, w0, #1
	cmp	x27, w8, sxtw
	b.hs	LBB0_12
; %bb.10:
	mov	x27, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x23, x27
	add	x8, x8, x24
	ldrb	w8, [x8, #2]
	strb	w8, [x22, x27]
	add	x19, x27, #1
	mov	x0, x23
	bl	__tcslen
	add	w8, w0, #1
	add	x9, x24, x27
	add	x9, x9, #3
	cmp	x9, w8, sxtw
	mov	x27, x19
	b.lo	LBB0_11
LBB0_12:
	add	x8, x23, x24
	sturb	wzr, [x8, #-1]
	ldur	x19, [x29, #-104]               ; 8-byte Folded Reload
LBB0_13:
	mov	x0, x21
	bl	_ARRAYSIZE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_ExpandEnvironmentStrings
	cbz	x0, LBB0_19
; %bb.14:
	mov	x0, x21
	bl	_LoadLibrary
	cbz	x0, LBB0_19
; %bb.15:
	mov	x23, x0
	mov	x0, x22
	bl	__ttoi
	mov	x22, x0
	mov	x0, x21
	bl	_ARRAYSIZE
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_LoadString
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_StringCchCopy
	ldur	w0, [x29, #-92]
	bl	_RegCloseKey
	mov	x0, x23
	bl	_FreeLibrary
Lloh32:
	adrp	x25, _TRUE@GOTPAGE
Lloh33:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
Lloh34:
	adrp	x25, _FALSE@GOTPAGE
Lloh35:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	x0, x23
	bl	_FreeLibrary
LBB0_19:
	stur	w20, [x29, #-96]
	ldur	w20, [x29, #-92]
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	sub	x5, x29, #96
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueEx
	mov	x19, x0
	ldr	x20, [x26]
	ldur	w0, [x29, #-92]
	bl	_RegCloseKey
Lloh38:
	adrp	x8, _TRUE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	x19, x20
	csel	x25, x8, x25, eq
LBB0_20:
	ldr	w0, [x25]
	mov	sp, x28
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_CCH_LAYOUT_ID,4,2              ; @CCH_LAYOUT_ID
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\%s"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Layout Display Name"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"Layout Text"

	.no_dead_strip	_GetLayoutName
.subsections_via_symbols
