	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_init_kb                 ## -- Begin function matrix_init_kb
	.p2align	4, 0x90
_matrix_init_kb:                        ## @matrix_init_kb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TCCR1A@GOTPCREL(%rip), %rax
	movl	$169, (%rax)
	movq	_TCCR1B@GOTPCREL(%rip), %rax
	movl	$9, (%rax)
	movq	_DDRB@GOTPCREL(%rip), %rax
	andb	$-17, (%rax)
	movq	_PORTB@GOTPCREL(%rip), %rax
	andb	$-17, (%rax)
	movq	_DDRC@GOTPCREL(%rip), %rax
	andb	$127, (%rax)
	movq	_DDRD@GOTPCREL(%rip), %rax
	andb	$-49, (%rax)
	movq	_DDRE@GOTPCREL(%rip), %rax
	andb	$-65, (%rax)
	movq	_PORTC@GOTPCREL(%rip), %rax
	orb	$-128, (%rax)
	movq	_PORTD@GOTPCREL(%rip), %rax
	orb	$48, (%rax)
	movq	_PORTE@GOTPCREL(%rip), %rax
	orb	$64, (%rax)
	xorl	%eax, %eax
	callq	_eeconfig_read_kb
	movq	_keyboard_config@GOTPCREL(%rip), %rcx
	movl	%eax, 16(%rcx)
	movl	8(%rcx), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	leal	3(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$2, %edi
	callq	_ergodox_led_all_set
	xorl	%eax, %eax
	callq	_ergodox_blink_all_leds
	xorl	%eax, %eax
	popq	%rbp
	jmp	_matrix_init_user               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TCCR1A,4,2                     ## @TCCR1A
	.comm	_TCCR1B,4,2                     ## @TCCR1B
	.comm	_DDRB,4,2                       ## @DDRB
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_DDRC,4,2                       ## @DDRC
	.comm	_DDRD,4,2                       ## @DDRD
	.comm	_DDRE,4,2                       ## @DDRE
	.comm	_PORTC,4,2                      ## @PORTC
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_PORTE,4,2                      ## @PORTE
	.comm	_keyboard_config,24,3           ## @keyboard_config
	.comm	_LED_FLAG_ALL,4,2               ## @LED_FLAG_ALL
	.comm	_LED_FLAG_NONE,4,2              ## @LED_FLAG_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_init_kb                 ; -- Begin function matrix_init_kb
	.p2align	2
_matrix_init_kb:                        ; @matrix_init_kb
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TCCR1A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCCR1A@GOTPAGEOFF]
	mov	w9, #169
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _TCCR1B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCCR1B@GOTPAGEOFF]
	mov	w9, #9
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _DDRB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDRB@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffffef
	str	w9, [x8]
Lloh8:
	adrp	x8, _PORTB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffffef
	str	w9, [x8]
Lloh10:
	adrp	x8, _DDRC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DDRC@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffff7f
Lloh12:
	adrp	x10, _DDRD@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DDRD@GOTPAGEOFF]
	str	w9, [x8]
	ldr	w8, [x10]
	and	w8, w8, #0xffffffcf
	str	w8, [x10]
Lloh14:
	adrp	x8, _DDRE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DDRE@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffffbf
	str	w9, [x8]
Lloh16:
	adrp	x8, _PORTC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PORTC@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x80
	str	w9, [x8]
Lloh18:
	adrp	x8, _PORTD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x30
	str	w9, [x8]
Lloh20:
	adrp	x8, _PORTE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORTE@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x40
	str	w9, [x8]
	bl	_eeconfig_read_kb
Lloh22:
	adrp	x8, _keyboard_config@GOTPAGE
Lloh23:
	ldr	x8, [x8, _keyboard_config@GOTPAGEOFF]
	str	w0, [x8, #16]
	ldr	w8, [x8, #8]
	lsl	w9, w8, #8
	sub	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	bl	_ergodox_led_all_set
	bl	_ergodox_blink_all_leds
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_matrix_init_user
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TCCR1A,4,2                     ; @TCCR1A
	.comm	_TCCR1B,4,2                     ; @TCCR1B
	.comm	_DDRB,4,2                       ; @DDRB
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_DDRC,4,2                       ; @DDRC
	.comm	_DDRD,4,2                       ; @DDRD
	.comm	_DDRE,4,2                       ; @DDRE
	.comm	_PORTC,4,2                      ; @PORTC
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_PORTE,4,2                      ; @PORTE
	.comm	_keyboard_config,24,3           ; @keyboard_config
	.comm	_LED_FLAG_ALL,4,2               ; @LED_FLAG_ALL
	.comm	_LED_FLAG_NONE,4,2              ; @LED_FLAG_NONE
.subsections_via_symbols
