	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_key_position_to_led_index
_map_key_position_to_led_index:         ## @map_key_position_to_led_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rcx
	movq	$-1, %rax
	cmpq	%rsi, (%rcx)
	jbe	LBB0_3
## %bb.1:
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jbe	LBB0_3
## %bb.2:
	movq	_KEY_TO_LED_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rdi,8), %rax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	_MATRIX_COLS,8,3                ## @MATRIX_COLS
	.comm	_KEY_TO_LED_MAP,8,3             ## @KEY_TO_LED_MAP
	.no_dead_strip	_map_key_position_to_led_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_key_position_to_led_index
_map_key_position_to_led_index:         ; @map_key_position_to_led_index
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MATRIX_COLS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MATRIX_COLS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x0, #0, hi
	b.hi	LBB0_2
; %bb.1:
	mov	x0, #-1
	ret
LBB0_2:
Lloh6:
	adrp	x8, _KEY_TO_LED_MAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_TO_LED_MAP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x0, [x8, x0, lsl #3]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	_MATRIX_COLS,8,3                ; @MATRIX_COLS
	.comm	_KEY_TO_LED_MAP,8,3             ; @KEY_TO_LED_MAP
	.no_dead_strip	_map_key_position_to_led_index
.subsections_via_symbols
