	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bootmagic                      ## -- Begin function bootmagic
	.p2align	4, 0x90
_bootmagic:                             ## @bootmagic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_eeconfig_is_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_eeconfig_init
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_print
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_matrix_scan
	movl	$10, %edi
	callq	_wait_ms
	incl	%ebx
	jne	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_print
	movq	_BOOTMAGIC_KEY_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_5
LBB0_37:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_BOOTMAGIC_KEY_EEPROM_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_eeconfig_init
LBB0_7:
	movq	_BOOTMAGIC_KEY_BOOTLOADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_bootloader_jump
LBB0_9:
	xorl	%eax, %eax
	callq	_eeconfig_read_debug
	movq	_debug_config@GOTPCREL(%rip), %rbx
	movl	%eax, 16(%rbx)
	movq	_BOOTMAGIC_KEY_DEBUG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	_BOOTMAGIC_KEY_DEBUG_MATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	_BOOTMAGIC_KEY_DEBUG_KEYBOARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	movq	_debug_config@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	addq	$4, %rbx
	jmp	LBB0_14
LBB0_13:
	movq	_BOOTMAGIC_KEY_DEBUG_MOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	(%rbx,%rcx,4), %rbx
	addq	$8, %rbx
LBB0_14:
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, (%rbx)
LBB0_15:
	movq	_debug_config@GOTPCREL(%rip), %rax
	movl	16(%rax), %edi
	callq	_eeconfig_update_debug
	xorl	%eax, %eax
	callq	_eeconfig_read_keymap
	movq	_keymap_config@GOTPCREL(%rip), %rbx
	movl	%eax, 32(%rbx)
	movq	_BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, (%rbx)
LBB0_17:
	movq	_BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	sete	%al
	movl	%eax, 4(%rbx)
LBB0_19:
	movq	_BOOTMAGIC_KEY_SWAP_LALT_LGUI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	cmpl	$0, 8(%rbx)
	sete	%al
	movl	%eax, 8(%rbx)
LBB0_21:
	movq	_BOOTMAGIC_KEY_SWAP_RALT_RGUI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	cmpl	$0, 12(%rbx)
	sete	%al
	movl	%eax, 12(%rbx)
LBB0_23:
	movq	_BOOTMAGIC_KEY_NO_GUI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	cmpl	$0, 16(%rbx)
	sete	%al
	movl	%eax, 16(%rbx)
LBB0_25:
	movq	_BOOTMAGIC_KEY_SWAP_GRAVE_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	xorl	%eax, %eax
	cmpl	$0, 20(%rbx)
	sete	%al
	movl	%eax, 20(%rbx)
LBB0_27:
	movq	_BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	cmpl	$0, 24(%rbx)
	sete	%al
	movl	%eax, 24(%rbx)
LBB0_29:
	movq	_BOOTMAGIC_HOST_NKRO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	xorl	%eax, %eax
	cmpl	$0, 28(%rbx)
	sete	%al
	movl	%eax, 28(%rbx)
LBB0_31:
	movl	32(%rbx), %edi
	callq	_eeconfig_update_keymap
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	leal	2(%r14), %ebx
	testq	%rax, %rax
	cmovel	%r14d, %ebx
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	leal	4(%rbx), %r14d
	testq	%rax, %rax
	cmovel	%ebx, %r14d
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	leal	8(%r14), %r15d
	testq	%rax, %rax
	cmovel	%r14d, %r15d
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	movl	%r15d, %ebx
	orl	$16, %ebx
	testq	%rax, %rax
	cmovel	%r15d, %ebx
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	movl	%ebx, %r14d
	orl	$32, %r14d
	testq	%rax, %rax
	cmovel	%ebx, %r14d
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	movl	%r14d, %r15d
	orl	$64, %r15d
	testq	%rax, %rax
	cmovel	%r14d, %r15d
	movq	_BOOTMAGIC_KEY_DEFAULT_LAYER_7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	movl	%r15d, %ebx
	orl	$128, %ebx
	testq	%rax, %rax
	cmovel	%r15d, %ebx
	testl	%ebx, %ebx
	je	LBB0_33
## %bb.32:
	movl	%ebx, %edi
	callq	_eeconfig_update_default_layer
	jmp	LBB0_34
LBB0_33:
	xorl	%eax, %eax
	callq	_eeconfig_read_default_layer
	movl	%eax, %ebx
LBB0_34:
	movl	%ebx, %edi
	callq	_default_layer_set
	movq	_BOOTMAGIC_KEY_EE_HANDS_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movl	$1, %edi
	callq	_eeconfig_update_handedness
LBB0_36:
	movq	_BOOTMAGIC_KEY_EE_HANDS_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bootmagic_scan_keycode
	testq	%rax, %rax
	je	LBB0_37
## %bb.38:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eeconfig_update_handedness     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bootmagic scan: ... "

L_.str.1:                               ## @.str.1
	.asciz	"done.\n"

	.comm	_BOOTMAGIC_KEY_SKIP,4,2         ## @BOOTMAGIC_KEY_SKIP
	.comm	_BOOTMAGIC_KEY_EEPROM_CLEAR,4,2 ## @BOOTMAGIC_KEY_EEPROM_CLEAR
	.comm	_BOOTMAGIC_KEY_BOOTLOADER,4,2   ## @BOOTMAGIC_KEY_BOOTLOADER
	.comm	_debug_config,20,2              ## @debug_config
	.comm	_BOOTMAGIC_KEY_DEBUG_ENABLE,4,2 ## @BOOTMAGIC_KEY_DEBUG_ENABLE
	.comm	_BOOTMAGIC_KEY_DEBUG_MATRIX,4,2 ## @BOOTMAGIC_KEY_DEBUG_MATRIX
	.comm	_BOOTMAGIC_KEY_DEBUG_KEYBOARD,4,2 ## @BOOTMAGIC_KEY_DEBUG_KEYBOARD
	.comm	_BOOTMAGIC_KEY_DEBUG_MOUSE,4,2  ## @BOOTMAGIC_KEY_DEBUG_MOUSE
	.comm	_keymap_config,36,2             ## @keymap_config
	.comm	_BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK,4,2 ## @BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK
	.comm	_BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL,4,2 ## @BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL
	.comm	_BOOTMAGIC_KEY_SWAP_LALT_LGUI,4,2 ## @BOOTMAGIC_KEY_SWAP_LALT_LGUI
	.comm	_BOOTMAGIC_KEY_SWAP_RALT_RGUI,4,2 ## @BOOTMAGIC_KEY_SWAP_RALT_RGUI
	.comm	_BOOTMAGIC_KEY_NO_GUI,4,2       ## @BOOTMAGIC_KEY_NO_GUI
	.comm	_BOOTMAGIC_KEY_SWAP_GRAVE_ESC,4,2 ## @BOOTMAGIC_KEY_SWAP_GRAVE_ESC
	.comm	_BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE,4,2 ## @BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE
	.comm	_BOOTMAGIC_HOST_NKRO,4,2        ## @BOOTMAGIC_HOST_NKRO
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_0,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_0
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_1,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_1
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_2,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_2
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_3,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_3
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_4,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_4
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_5,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_5
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_6,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_6
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_7,4,2 ## @BOOTMAGIC_KEY_DEFAULT_LAYER_7
	.comm	_BOOTMAGIC_KEY_EE_HANDS_LEFT,4,2 ## @BOOTMAGIC_KEY_EE_HANDS_LEFT
	.comm	_BOOTMAGIC_KEY_EE_HANDS_RIGHT,4,2 ## @BOOTMAGIC_KEY_EE_HANDS_RIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bootmagic                      ; -- Begin function bootmagic
	.p2align	2
_bootmagic:                             ; @bootmagic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_eeconfig_is_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_eeconfig_init
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
	mov	w19, #-100
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_matrix_scan
	mov	w0, #10
	bl	_wait_ms
	adds	w19, w19, #1
	b.lo	LBB0_3
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print
Lloh4:
	adrp	x8, _BOOTMAGIC_KEY_SKIP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BOOTMAGIC_KEY_SKIP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x8, _BOOTMAGIC_KEY_EEPROM_CLEAR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BOOTMAGIC_KEY_EEPROM_CLEAR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_8
; %bb.7:
	bl	_eeconfig_init
LBB0_8:
Lloh10:
	adrp	x8, _BOOTMAGIC_KEY_BOOTLOADER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BOOTMAGIC_KEY_BOOTLOADER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_10
; %bb.9:
	bl	_bootloader_jump
LBB0_10:
	bl	_eeconfig_read_debug
Lloh13:
	adrp	x19, _debug_config@GOTPAGE
Lloh14:
	ldr	x19, [x19, _debug_config@GOTPAGEOFF]
	str	w0, [x19, #16]
Lloh15:
	adrp	x8, _BOOTMAGIC_KEY_DEBUG_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEBUG_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_16
; %bb.11:
Lloh18:
	adrp	x8, _BOOTMAGIC_KEY_DEBUG_MATRIX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEBUG_MATRIX@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
Lloh21:
	adrp	x20, _debug_config@GOTPAGE
Lloh22:
	ldr	x20, [x20, _debug_config@GOTPAGEOFF]
	cbnz	x0, LBB0_15
; %bb.12:
Lloh23:
	adrp	x8, _BOOTMAGIC_KEY_DEBUG_KEYBOARD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEBUG_KEYBOARD@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_14
; %bb.13:
	add	x20, x20, #4
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x8, _BOOTMAGIC_KEY_DEBUG_MOUSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEBUG_MOUSE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	add	x8, x20, #8
	add	x9, x20, #12
	cmp	x0, #0
	csel	x20, x9, x8, eq
LBB0_15:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x20]
LBB0_16:
	ldr	w0, [x19, #16]
	bl	_eeconfig_update_debug
	bl	_eeconfig_read_keymap
Lloh29:
	adrp	x19, _keymap_config@GOTPAGE
Lloh30:
	ldr	x19, [x19, _keymap_config@GOTPAGEOFF]
	str	w0, [x19, #32]
Lloh31:
	adrp	x8, _BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
LBB0_18:
Lloh34:
	adrp	x8, _BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #4]
LBB0_20:
Lloh37:
	adrp	x8, _BOOTMAGIC_KEY_SWAP_LALT_LGUI@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BOOTMAGIC_KEY_SWAP_LALT_LGUI@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #8]
LBB0_22:
Lloh40:
	adrp	x8, _BOOTMAGIC_KEY_SWAP_RALT_RGUI@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BOOTMAGIC_KEY_SWAP_RALT_RGUI@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_24
; %bb.23:
	ldr	w8, [x19, #12]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #12]
LBB0_24:
Lloh43:
	adrp	x8, _BOOTMAGIC_KEY_NO_GUI@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BOOTMAGIC_KEY_NO_GUI@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_26
; %bb.25:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #16]
LBB0_26:
Lloh46:
	adrp	x8, _BOOTMAGIC_KEY_SWAP_GRAVE_ESC@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BOOTMAGIC_KEY_SWAP_GRAVE_ESC@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_28
; %bb.27:
	ldr	w8, [x19, #20]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #20]
LBB0_28:
Lloh49:
	adrp	x8, _BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_30
; %bb.29:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #24]
LBB0_30:
Lloh52:
	adrp	x8, _BOOTMAGIC_HOST_NKRO@GOTPAGE
Lloh53:
	ldr	x8, [x8, _BOOTMAGIC_HOST_NKRO@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_32
; %bb.31:
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #28]
LBB0_32:
	ldr	w0, [x19, #32]
	bl	_eeconfig_update_keymap
Lloh55:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_0@GOTPAGE
Lloh56:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_0@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cmp	x0, #0
	cset	w19, ne
Lloh58:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_1@GOTPAGE
Lloh59:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_1@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x2
	cmp	x0, #0
	csel	w19, w19, w8, eq
Lloh61:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_2@GOTPAGE
Lloh62:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_2@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x4
	cmp	x0, #0
	csel	w19, w19, w8, eq
Lloh64:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_3@GOTPAGE
Lloh65:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_3@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x8
	cmp	x0, #0
	csel	w19, w19, w8, eq
Lloh67:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_4@GOTPAGE
Lloh68:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_4@GOTPAGEOFF]
Lloh69:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x10
	cmp	x0, #0
	csel	w19, w19, w8, eq
Lloh70:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_5@GOTPAGE
Lloh71:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_5@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x20
	cmp	x0, #0
	csel	w19, w19, w8, eq
Lloh73:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_6@GOTPAGE
Lloh74:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_6@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x40
	cmp	x0, #0
	csel	w19, w19, w8, eq
Lloh76:
	adrp	x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_7@GOTPAGE
Lloh77:
	ldr	x8, [x8, _BOOTMAGIC_KEY_DEFAULT_LAYER_7@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	orr	w8, w19, #0x80
	cmp	x0, #0
	csel	w19, w19, w8, eq
	cbz	w19, LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_eeconfig_update_default_layer
	b	LBB0_35
LBB0_34:
	bl	_eeconfig_read_default_layer
	mov	x19, x0
LBB0_35:
	mov	x0, x19
	bl	_default_layer_set
Lloh79:
	adrp	x8, _BOOTMAGIC_KEY_EE_HANDS_LEFT@GOTPAGE
Lloh80:
	ldr	x8, [x8, _BOOTMAGIC_KEY_EE_HANDS_LEFT@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_37
; %bb.36:
	mov	w0, #1
	bl	_eeconfig_update_handedness
LBB0_37:
Lloh82:
	adrp	x8, _BOOTMAGIC_KEY_EE_HANDS_RIGHT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _BOOTMAGIC_KEY_EE_HANDS_RIGHT@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	bl	_bootmagic_scan_keycode
	cbz	x0, LBB0_5
; %bb.38:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eeconfig_update_handedness
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bootmagic scan: ... "

l_.str.1:                               ; @.str.1
	.asciz	"done.\n"

	.comm	_BOOTMAGIC_KEY_SKIP,4,2         ; @BOOTMAGIC_KEY_SKIP
	.comm	_BOOTMAGIC_KEY_EEPROM_CLEAR,4,2 ; @BOOTMAGIC_KEY_EEPROM_CLEAR
	.comm	_BOOTMAGIC_KEY_BOOTLOADER,4,2   ; @BOOTMAGIC_KEY_BOOTLOADER
	.comm	_debug_config,20,2              ; @debug_config
	.comm	_BOOTMAGIC_KEY_DEBUG_ENABLE,4,2 ; @BOOTMAGIC_KEY_DEBUG_ENABLE
	.comm	_BOOTMAGIC_KEY_DEBUG_MATRIX,4,2 ; @BOOTMAGIC_KEY_DEBUG_MATRIX
	.comm	_BOOTMAGIC_KEY_DEBUG_KEYBOARD,4,2 ; @BOOTMAGIC_KEY_DEBUG_KEYBOARD
	.comm	_BOOTMAGIC_KEY_DEBUG_MOUSE,4,2  ; @BOOTMAGIC_KEY_DEBUG_MOUSE
	.comm	_keymap_config,36,2             ; @keymap_config
	.comm	_BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK,4,2 ; @BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK
	.comm	_BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL,4,2 ; @BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL
	.comm	_BOOTMAGIC_KEY_SWAP_LALT_LGUI,4,2 ; @BOOTMAGIC_KEY_SWAP_LALT_LGUI
	.comm	_BOOTMAGIC_KEY_SWAP_RALT_RGUI,4,2 ; @BOOTMAGIC_KEY_SWAP_RALT_RGUI
	.comm	_BOOTMAGIC_KEY_NO_GUI,4,2       ; @BOOTMAGIC_KEY_NO_GUI
	.comm	_BOOTMAGIC_KEY_SWAP_GRAVE_ESC,4,2 ; @BOOTMAGIC_KEY_SWAP_GRAVE_ESC
	.comm	_BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE,4,2 ; @BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE
	.comm	_BOOTMAGIC_HOST_NKRO,4,2        ; @BOOTMAGIC_HOST_NKRO
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_0,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_0
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_1,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_1
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_2,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_2
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_3,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_3
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_4,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_4
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_5,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_5
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_6,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_6
	.comm	_BOOTMAGIC_KEY_DEFAULT_LAYER_7,4,2 ; @BOOTMAGIC_KEY_DEFAULT_LAYER_7
	.comm	_BOOTMAGIC_KEY_EE_HANDS_LEFT,4,2 ; @BOOTMAGIC_KEY_EE_HANDS_LEFT
	.comm	_BOOTMAGIC_KEY_EE_HANDS_RIGHT,4,2 ; @BOOTMAGIC_KEY_EE_HANDS_RIGHT
.subsections_via_symbols
