	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_slave_scan              ## -- Begin function matrix_slave_scan
	.p2align	4, 0x90
_matrix_slave_scan:                     ## @matrix_slave_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	__matrix_scan
	movq	_ROWS_PER_HAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	_isLeftHand@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpq	$0, (%rsi)
	movq	_matrix@GOTPCREL(%rip), %rdi
	movq	_serial_slave_buffer@GOTPCREL(%rip), %rsi
	cmovneq	%rdx, %rcx
	movq	(%rsi), %rsi
	shlq	$2, %rcx
	addq	(%rdi), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	movl	%edi, (%rsi,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isLeftHand,8,3                 ## @isLeftHand
	.comm	_ROWS_PER_HAND,4,2              ## @ROWS_PER_HAND
	.comm	_matrix,8,3                     ## @matrix
	.comm	_serial_slave_buffer,8,3        ## @serial_slave_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_slave_scan              ; -- Begin function matrix_slave_scan
	.p2align	2
_matrix_slave_scan:                     ; @matrix_slave_scan
	.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
	bl	__matrix_scan
Lloh0:
	adrp	x8, _ROWS_PER_HAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROWS_PER_HAND@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _isLeftHand@GOTPAGE
Lloh3:
	ldr	x10, [x10, _isLeftHand@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x10]
Lloh5:
	adrp	x10, _matrix@GOTPAGE
Lloh6:
	ldr	x10, [x10, _matrix@GOTPAGEOFF]
Lloh7:
	ldr	x13, [x10]
Lloh8:
	adrp	x10, _serial_slave_buffer@GOTPAGE
Lloh9:
	ldr	x10, [x10, _serial_slave_buffer@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x12, #0
	csel	x11, x11, xzr, eq
	add	x11, x13, x11, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x11, x12]
	str	w13, [x10, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_isLeftHand,8,3                 ; @isLeftHand
	.comm	_ROWS_PER_HAND,4,2              ; @ROWS_PER_HAND
	.comm	_matrix,8,3                     ; @matrix
	.comm	_serial_slave_buffer,8,3        ; @serial_slave_buffer
.subsections_via_symbols
