	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_init_user               ## -- Begin function matrix_init_user
	.p2align	4, 0x90
_matrix_init_user:                      ## @matrix_init_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_EECONFIG_BELAK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_eeprom_read_word
	movq	_EECONFIG_BELAK_MAGIC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_eeprom_update_word
	movq	_EECONFIG_BELAK_SWAP_GUI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_eeprom_update_byte
LBB0_2:
	movq	_EECONFIG_BELAK_SWAP_GUI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_eeprom_read_byte
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SWPH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_on
	movq	_swap_gui_ctrl@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EECONFIG_BELAK,4,2             ## @EECONFIG_BELAK
	.comm	_EECONFIG_BELAK_MAGIC,8,3       ## @EECONFIG_BELAK_MAGIC
	.comm	_EECONFIG_BELAK_SWAP_GUI_CTRL,4,2 ## @EECONFIG_BELAK_SWAP_GUI_CTRL
	.comm	_SWPH,4,2                       ## @SWPH
	.comm	_swap_gui_ctrl,4,2              ## @swap_gui_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_init_user               ; -- Begin function matrix_init_user
	.p2align	2
_matrix_init_user:                      ; @matrix_init_user
	.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
Lloh0:
	adrp	x20, _EECONFIG_BELAK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EECONFIG_BELAK@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_eeprom_read_word
Lloh2:
	adrp	x8, _EECONFIG_BELAK_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EECONFIG_BELAK_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
Lloh5:
	adrp	x19, _EECONFIG_BELAK_SWAP_GUI_CTRL@GOTPAGE
Lloh6:
	ldr	x19, [x19, _EECONFIG_BELAK_SWAP_GUI_CTRL@GOTPAGEOFF]
	cmp	x0, x1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_eeprom_update_word
	ldr	w0, [x19]
	mov	w1, #0
	bl	_eeprom_update_byte
LBB0_2:
	ldr	w0, [x19]
	bl	_eeprom_read_byte
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _SWPH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SWPH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_layer_on
Lloh10:
	adrp	x8, _swap_gui_ctrl@GOTPAGE
Lloh11:
	ldr	x8, [x8, _swap_gui_ctrl@GOTPAGEOFF]
	mov	w9, #1
Lloh12:
	str	w9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EECONFIG_BELAK,4,2             ; @EECONFIG_BELAK
	.comm	_EECONFIG_BELAK_MAGIC,8,3       ; @EECONFIG_BELAK_MAGIC
	.comm	_EECONFIG_BELAK_SWAP_GUI_CTRL,4,2 ; @EECONFIG_BELAK_SWAP_GUI_CTRL
	.comm	_SWPH,4,2                       ; @SWPH
	.comm	_swap_gui_ctrl,4,2              ; @swap_gui_ctrl
.subsections_via_symbols
