	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_get_indicator_row_col ## -- Begin function backlight_get_indicator_row_col
	.p2align	4, 0x90
_backlight_get_indicator_row_col:       ## @backlight_get_indicator_row_col
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movl	%edi, %eax
	andl	$-2, %eax
	cmpl	$254, %eax
	jne	LBB0_1
## %bb.11:
	movl	%r12d, (%rsi)
	movl	$0, (%rdx)
	jmp	LBB0_10
LBB0_1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movq	_MATRIX_COLS@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$255, -44(%rbp)
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_map_row_column_to_led
	cmpl	%r12d, -44(%rbp)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	%r14d
	movl	(%r15), %ecx
	cmpl	%ecx, %r14d
	jl	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_ROWS,4,2                ## @MATRIX_ROWS
	.comm	_MATRIX_COLS,4,2                ## @MATRIX_COLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_get_indicator_row_col ; -- Begin function backlight_get_indicator_row_col
	.p2align	2
_backlight_get_indicator_row_col:       ; @backlight_get_indicator_row_col
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	and	w8, w0, #0xfffffffe
	cmp	w8, #254
	b.ne	LBB0_2
; %bb.1:
	str	w21, [x20]
	str	wzr, [x19]
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x24, _MATRIX_ROWS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w22, #0
Lloh2:
	adrp	x25, _MATRIX_COLS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MATRIX_COLS@GOTPAGEOFF]
	ldr	w9, [x25]
	mov	w26, #255
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w26, [sp, #12]
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	bl	_map_row_column_to_led
	ldr	w8, [sp, #12]
	cmp	w8, w21
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w23, w23, #1
	ldr	w9, [x25]
	cmp	w23, w9
	b.lt	LBB0_8
	b	LBB0_4
LBB0_10:
	str	w22, [x20]
	str	w23, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_ROWS,4,2                ; @MATRIX_ROWS
	.comm	_MATRIX_COLS,4,2                ; @MATRIX_COLS
.subsections_via_symbols
