	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initialize_keyboard_layout_mapping ## -- Begin function initialize_keyboard_layout_mapping
	.p2align	4, 0x90
_initialize_keyboard_layout_mapping:    ## @initialize_keyboard_layout_mapping
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rsi
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	_HCBUFSIZ_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hcmalloc
	movq	%rax, %r14
	leaq	-44(%rbp), %rdi
	callq	_hc_feof
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%r12d, (%rax)
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	movq	%r14, %rdi
	callq	_hcfree
	movq	_sort_by_src_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	$16, %edx
	callq	_qsort
	movl	$1, %eax
	jmp	LBB0_11
LBB0_2:
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_hc_feof
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HCBUFSIZ_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fgetl
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, -112(%rbp)
	movq	-104(%rbp), %rcx
	movl	$1, (%rcx)
	movq	-96(%rbp), %rcx
	movl	$4, (%rcx)
	movq	-88(%rbp), %rcx
	movl	$9, (%rcx)
	movq	_TOKEN_ATTR_VERIFY_LENGTH@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movq	-64(%rbp), %rdx
	movq	%rcx, (%rdx)
	movq	-104(%rbp), %rcx
	movl	$0, 4(%rcx)
	movq	-96(%rbp), %rcx
	movl	$4, 4(%rcx)
	movq	-88(%rbp), %rcx
	movl	$9, 4(%rcx)
	movq	(%rsi), %rcx
	movq	-64(%rbp), %rdx
	movq	%rcx, 8(%rdx)
	movq	%r14, %rdi
	movl	%eax, %esi
	leaq	-112(%rbp), %rdx
	callq	_input_tokenizer
	movq	_PARSER_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %r13
	movl	%r12d, %ebx
	movq	%r14, %r12
	movq	%r13, %r14
	shlq	$4, %r14
	leaq	(%r15,%r14), %rdi
	addq	$12, %rdi
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	callq	_memcpy
	leaq	(%r15,%r14), %rdi
	addq	$8, %rdi
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx
	movl	4(%rcx), %esi
	movl	4(%rax), %edx
	callq	_memcpy
	movq	-80(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%r15,%r14)
	movl	4(%rax), %eax
	movl	%eax, (%r15,%r14)
	movq	%r12, %r14
	movl	%ebx, %r12d
	leaq	-44(%rbp), %rbx
	cmpl	$256, %r13d                     ## imm = 0x100
	jne	LBB0_6
LBB0_9:
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	movq	%r14, %rdi
	callq	_hcfree
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_HCBUFSIZ_LARGE,4,2             ## @HCBUFSIZ_LARGE
	.comm	_TOKEN_ATTR_VERIFY_LENGTH,8,3   ## @TOKEN_ATTR_VERIFY_LENGTH
	.comm	_PARSER_OK,8,3                  ## @PARSER_OK
	.comm	_sort_by_src_len,4,2            ## @sort_by_src_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initialize_keyboard_layout_mapping ; -- Begin function initialize_keyboard_layout_mapping
	.p2align	2
_initialize_keyboard_layout_mapping:    ; @initialize_keyboard_layout_mapping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x2
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #76
	bl	_hc_fopen
	cbz	w0, LBB0_10
; %bb.1:
Lloh2:
	adrp	x23, _HCBUFSIZ_LARGE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HCBUFSIZ_LARGE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_hcmalloc
	mov	x21, x0
	add	x0, sp, #76
	bl	_hc_feof
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	w22, #0
	cbz	w0, LBB0_3
LBB0_2:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w22, [x8]
	add	x0, sp, #76
	bl	_hc_fclose
	mov	x0, x21
	bl	_hcfree
Lloh4:
	adrp	x8, _sort_by_src_len@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sort_by_src_len@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #16
	bl	_qsort
	mov	w0, #1
	b	LBB0_10
LBB0_3:
	mov	w25, #1
	mov	w26, #4
	mov	w27, #9
Lloh7:
	adrp	x28, _TOKEN_ATTR_VERIFY_LENGTH@GOTPAGE
Lloh8:
	ldr	x28, [x28, _TOKEN_ATTR_VERIFY_LENGTH@GOTPAGEOFF]
Lloh9:
	adrp	x20, _PARSER_OK@GOTPAGE
Lloh10:
	ldr	x20, [x20, _PARSER_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #76
	bl	_hc_feof
	cbnz	w0, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	add	x0, sp, #76
	mov	x1, x21
	bl	_fgetl
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	w8, #2
	str	w8, [sp, #16]
	ldr	x8, [sp, #24]
	str	w25, [x8]
	ldr	x8, [sp, #32]
	str	w26, [x8]
	ldr	x8, [sp, #40]
	str	w27, [x8]
	ldr	x8, [x28]
	ldr	x9, [sp, #64]
	str	x8, [x9]
	ldr	x8, [sp, #24]
	str	wzr, [x8, #4]
	ldr	x8, [sp, #32]
	str	w26, [x8, #4]
	ldr	x8, [sp, #40]
	str	w27, [x8, #4]
	ldr	x8, [x28]
	ldr	x9, [sp, #64]
	str	x8, [x9, #8]
	add	x2, sp, #16
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_input_tokenizer
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x19, w22, sxtw #4
	add	x0, x24, #12
	ldp	x9, x8, [sp, #48]
	ldr	w1, [x8]
	ldr	w2, [x9]
	bl	_memcpy
	add	x0, x24, #8
	ldp	x9, x8, [sp, #48]
	ldr	w1, [x8, #4]
	ldr	w2, [x9, #4]
	bl	_memcpy
	ldr	x8, [sp, #48]
	ldr	w9, [x8]
	str	w9, [x24, #4]
	ldr	w8, [x8, #4]
	str	w8, [x24]
	cmp	w22, #256
	b.ne	LBB0_4
LBB0_9:
	add	x0, sp, #76
	bl	_hc_fclose
	mov	x0, x21
	bl	_hcfree
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_HCBUFSIZ_LARGE,4,2             ; @HCBUFSIZ_LARGE
	.comm	_TOKEN_ATTR_VERIFY_LENGTH,8,3   ; @TOKEN_ATTR_VERIFY_LENGTH
	.comm	_PARSER_OK,8,3                  ; @PARSER_OK
	.comm	_sort_by_src_len,4,2            ; @sort_by_src_len
.subsections_via_symbols
