	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atkbd_set_keycode_table
_atkbd_set_keycode_table:               ## @atkbd_set_keycode_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%r13), %edi
	movq	_ATKBD_KEYMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_zero
	cmpq	$0, 24(%r13)
	je	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movq	_atkbd_scroll_keys@GOTPCREL(%rip), %rsi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	$128, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_atkbd_unxlate_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r15d
	movq	_atkbd_set2_keycode@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	(%rax,%r15,8), %rax
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%rdx), %rax
	orq	$128, %r15
	movq	(%rax,%r15,8), %rax
	movq	8(%r13), %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	orl	$128, %ebx
	movq	%rax, (%rcx,%rbx,8)
	cmpq	$0, 16(%r13)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rdi
	movq	%rsi, %r12
	callq	_ARRAY_SIZE
	movq	%r12, %rsi
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r14
	cmpq	%rax, %r13
	movq	%r12, %rsi
	jge	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rdi
	cmpl	-8(%rdi,%r14), %r15d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rdi,%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%rsi), %rdi
	jmp	LBB0_7
LBB0_9:
	cmpl	$3, (%r13)
	movq	8(%r13), %rdi
	jne	LBB0_11
## %bb.10:
	movq	_atkbd_set3_keycode@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_15
LBB0_11:
	movq	_atkbd_set2_keycode@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_memcpy
	cmpq	$0, 16(%r13)
	je	LBB0_15
## %bb.12:
	movq	_atkbd_scroll_keys@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	-8(%rax,%rbx), %ecx
	movq	(%rax,%rbx), %rax
	movq	8(%r13), %rdx
	movq	%rax, (%rdx,%rcx,8)
	incq	%r15
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_14
LBB0_15:
	movq	_ATKBD_RET_HANGEUL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_atkbd_compat_scancode
	movq	_KEY_HANGEUL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r13), %rdx
	movl	%eax, %esi
	movq	%rcx, (%rdx,%rsi,8)
	movl	4(%r13), %esi
	movl	%eax, %edi
	callq	___set_bit
	movq	_ATKBD_RET_HANJA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_atkbd_compat_scancode
	movq	_KEY_HANJA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r13), %rdx
	movl	%eax, %esi
	movq	%rcx, (%rdx,%rsi,8)
	movl	4(%r13), %esi
	movl	%eax, %edi
	callq	___set_bit
	movq	_atkbd_platform_fixup_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atkbd_platform_fixup           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATKBD_KEYMAP_SIZE,4,2          ## @ATKBD_KEYMAP_SIZE
	.comm	_atkbd_unxlate_table,8,3        ## @atkbd_unxlate_table
	.comm	_atkbd_set2_keycode,8,3         ## @atkbd_set2_keycode
	.comm	_atkbd_scroll_keys,8,3          ## @atkbd_scroll_keys
	.comm	_atkbd_set3_keycode,8,3         ## @atkbd_set3_keycode
	.comm	_ATKBD_RET_HANGEUL,4,2          ## @ATKBD_RET_HANGEUL
	.comm	_KEY_HANGEUL,8,3                ## @KEY_HANGEUL
	.comm	_ATKBD_RET_HANJA,4,2            ## @ATKBD_RET_HANJA
	.comm	_KEY_HANJA,8,3                  ## @KEY_HANJA
	.comm	_atkbd_platform_fixup_data,4,2  ## @atkbd_platform_fixup_data
	.no_dead_strip	_atkbd_set_keycode_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atkbd_set_keycode_table
_atkbd_set_keycode_table:               ; @atkbd_set_keycode_table
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _ATKBD_KEYMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATKBD_KEYMAP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_zero
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x20, #0
Lloh3:
	adrp	x21, _atkbd_unxlate_table@GOTPAGE
Lloh4:
	ldr	x21, [x21, _atkbd_unxlate_table@GOTPAGEOFF]
Lloh5:
	adrp	x22, _atkbd_set2_keycode@GOTPAGE
Lloh6:
	ldr	x22, [x22, _atkbd_set2_keycode@GOTPAGEOFF]
Lloh7:
	adrp	x23, _atkbd_scroll_keys@GOTPAGE
Lloh8:
	ldr	x23, [x23, _atkbd_scroll_keys@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, #128
	b.eq	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x21]
	ldr	w8, [x8, x20, lsl #2]
	ldr	x9, [x22]
	ldr	x9, [x9, x8, lsl #3]
	ldp	x10, x11, [x19, #8]
	str	x9, [x10, x20, lsl #3]
	ldr	x9, [x22]
	orr	x24, x8, #0x80
	ldr	x8, [x9, x24, lsl #3]
	ldr	x9, [x19, #8]
	and	x10, x20, #0xffffffff
	orr	x25, x10, #0x80
	str	x8, [x9, x25, lsl #3]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	mov	x27, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
	bl	_ARRAY_SIZE
	add	x26, x26, #16
	cmp	x27, w0, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23]
	ldr	w8, [x0, x26]
	cmp	w24, w8
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x0, x26
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #8]
	str	x8, [x9, x25, lsl #3]
	ldr	x0, [x23]
	b	LBB0_6
LBB0_9:
	ldr	w8, [x19]
	ldr	x0, [x19, #8]
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _atkbd_set3_keycode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _atkbd_set3_keycode@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	w2, #8
	bl	_memcpy
	b	LBB0_15
LBB0_11:
Lloh12:
	adrp	x8, _atkbd_set2_keycode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _atkbd_set2_keycode@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.12:
Lloh15:
	adrp	x20, _atkbd_scroll_keys@GOTPAGE
Lloh16:
	ldr	x20, [x20, _atkbd_scroll_keys@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, #0
	mov	x22, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	ldr	x10, [x19, #8]
	str	x8, [x10, x9, lsl #3]
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_14
LBB0_15:
Lloh17:
	adrp	x8, _ATKBD_RET_HANGEUL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATKBD_RET_HANGEUL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atkbd_compat_scancode
Lloh20:
	adrp	x8, _KEY_HANGEUL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KEY_HANGEUL@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9, w0, uxtw #3]
	ldr	w1, [x19, #4]
	bl	___set_bit
Lloh23:
	adrp	x8, _ATKBD_RET_HANJA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATKBD_RET_HANJA@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atkbd_compat_scancode
Lloh26:
	adrp	x8, _KEY_HANJA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KEY_HANJA@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9, w0, uxtw #3]
	ldr	w1, [x19, #4]
	bl	___set_bit
Lloh29:
	adrp	x8, _atkbd_platform_fixup_data@GOTPAGE
Lloh30:
	ldr	x8, [x8, _atkbd_platform_fixup_data@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_atkbd_platform_fixup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ATKBD_KEYMAP_SIZE,4,2          ; @ATKBD_KEYMAP_SIZE
	.comm	_atkbd_unxlate_table,8,3        ; @atkbd_unxlate_table
	.comm	_atkbd_set2_keycode,8,3         ; @atkbd_set2_keycode
	.comm	_atkbd_scroll_keys,8,3          ; @atkbd_scroll_keys
	.comm	_atkbd_set3_keycode,8,3         ; @atkbd_set3_keycode
	.comm	_ATKBD_RET_HANGEUL,4,2          ; @ATKBD_RET_HANGEUL
	.comm	_KEY_HANGEUL,8,3                ; @KEY_HANGEUL
	.comm	_ATKBD_RET_HANJA,4,2            ; @ATKBD_RET_HANJA
	.comm	_KEY_HANJA,8,3                  ; @KEY_HANJA
	.comm	_atkbd_platform_fixup_data,4,2  ; @atkbd_platform_fixup_data
	.no_dead_strip	_atkbd_set_keycode_table
.subsections_via_symbols
