	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_rows_on_col
_read_rows_on_col:                      ## @read_rows_on_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
	movq	%rdi, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_select_col
	movl	$30, %edi
	callq	_wait_us
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	notq	%rdx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	andq	(%r15,%r12,8), %rdx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%r13d, %r13d
	movl	$1, %ebx
	cmovnel	%r13d, %ebx
	cmpq	%rdx, %rax
	cmovel	%r13d, %ebx
	movq	%rdx, (%r15,%r12,8)
	incq	%r12
	movl	%ebx, %r13d
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jae	LBB0_2
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r12,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$2, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$2, %r12
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_E2@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	sarl	$4, %edi
	callq	__SFR_IO8
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_COL_SHIFTER@GOTPCREL(%rip), %rbx
	andl	$15, %edi
	callq	__BV
	movq	(%rbx), %rdx
	shlq	$2, %rdx
	testl	%r14d, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	notq	%rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_row_pins@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %edi
	sarl	$4, %edi
	callq	__SFR_IO8
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %edi
	andl	$15, %edi
	callq	__BV
	movq	_COL_SHIFTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	testl	%ebx, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	orq	(%r15,%r12,8), %rdx
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	orq	(%r15,%r12,8), %rdx
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	xorl	%eax, %eax
	callq	_unselect_cols
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	_E2,4,2                         ## @E2
	.comm	_COL_SHIFTER,8,3                ## @COL_SHIFTER
	.comm	_row_pins,8,3                   ## @row_pins
	.no_dead_strip	_read_rows_on_col
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_rows_on_col
_read_rows_on_col:                      ; @read_rows_on_col
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_select_col
	mov	w0, #30
	bl	_wait_us
Lloh0:
	adrp	x23, _MATRIX_ROWS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.1:
	mov	w21, #0
	mov	x24, #0
Lloh2:
	adrp	x26, _COL_SHIFTER@GOTPAGE
Lloh3:
	ldr	x26, [x26, _COL_SHIFTER@GOTPAGEOFF]
Lloh4:
	adrp	x27, _row_pins@GOTPAGE
Lloh5:
	ldr	x27, [x27, _row_pins@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, x24, lsl #3]
	bic	x8, x9, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x20, x24, lsl #3]
	cmp	w21, #0
	ccmp	x28, x8, #4, eq
	csinc	w21, w21, wzr, eq
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20, x24, lsl #3]
	cmp	x19, #2
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x24, #2
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x25, _E2@GOTPAGE
Lloh7:
	ldr	x25, [x25, _E2@GOTPAGEOFF]
	ldr	w8, [x25]
	asr	w0, w8, #4
	bl	__SFR_IO8
	mov	x22, x0
	ldr	w8, [x25]
	and	w0, w8, #0xf
	bl	__BV
	ldr	x8, [x26]
	lsl	x8, x8, #2
	tst	w0, w22
	b.ne	LBB0_2
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	lsl	x25, x24, #2
	ldr	w8, [x8, x25]
	asr	w0, w8, #4
	bl	__SFR_IO8
	mov	x22, x0
	ldr	x8, [x27]
	ldr	w8, [x8, x25]
	and	w0, w8, #0xf
	bl	__BV
	ldr	x8, [x26]
	lsl	x8, x8, x19
	tst	w0, w22
	b.eq	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, x24, lsl #3]
	orr	x8, x9, x8
	b	LBB0_3
LBB0_9:
	mov	w21, #0
LBB0_10:
	bl	_unselect_cols
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	_E2,4,2                         ; @E2
	.comm	_COL_SHIFTER,8,3                ; @COL_SHIFTER
	.comm	_row_pins,8,3                   ; @row_pins
	.no_dead_strip	_read_rows_on_col
.subsections_via_symbols
