	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_row_column_to_led          ## -- Begin function map_row_column_to_led
	.p2align	4, 0x90
_map_row_column_to_led:                 ## @map_row_column_to_led
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	$0, (%rcx)
	movq	_LED_DRIVER_LED_COUNT@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	testq	%r9, %r9
	je	LBB0_6
## %bb.1:
	movq	_g_leds@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	addq	$8, %r11
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	addq	$16, %r11
	cmpq	%r9, %rax
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, -8(%r11)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rsi, (%r11)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rdx,%r10,8)
	movq	(%rcx), %r10
	incq	%r10
	movq	%r10, (%rcx)
	movq	(%r8), %r9
	jmp	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_DRIVER_LED_COUNT,8,3       ## @LED_DRIVER_LED_COUNT
	.comm	_g_leds,8,3                     ## @g_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_row_column_to_led          ; -- Begin function map_row_column_to_led
	.p2align	2
_map_row_column_to_led:                 ; @map_row_column_to_led
	.cfi_startproc
; %bb.0:
	str	xzr, [x3]
Lloh0:
	adrp	x8, _LED_DRIVER_LED_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_DRIVER_LED_COUNT@GOTPAGEOFF]
	ldr	x11, [x8]
	cbz	x11, LBB0_6
; %bb.1:
	mov	x10, #0
	mov	x9, #0
Lloh2:
	adrp	x12, _g_leds@GOTPAGE
Lloh3:
	ldr	x12, [x12, _g_leds@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	add	x12, x12, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x12, x12, #16
	cmp	x9, x11
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x12, #-8]
	cmp	x13, x0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x12]
	cmp	x13, x1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x9, [x2, x10, lsl #3]
	ldr	x10, [x3]
	add	x10, x10, #1
	str	x10, [x3]
	ldr	x11, [x8]
	b	LBB0_2
LBB0_6:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_DRIVER_LED_COUNT,8,3       ; @LED_DRIVER_LED_COUNT
	.comm	_g_leds,8,3                     ; @g_leds
.subsections_via_symbols
