	.file	"extr_matrix.c_read_cols_on_row.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_cols_on_row, @function
read_cols_on_row:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, [rdi+rsi*8]
	mov	rdi, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [r15]
	mov	QWORD PTR [r15], 0
	call	select_row@PLT
	mov	edi, 30
	call	wait_us@PLT
	cmp	QWORD PTR MATRIX_COLS[rip], 0
	je	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR col_pins[rip]
	mov	rbx, QWORD PTR [rax+rbp*8]
	mov	rdi, rbx
	and	ebx, 15
	shr	rdi, 4
	call	_SFR_IO8@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	_BV@PLT
	mov	r8, rax
	mov	rax, QWORD PTR [r15]
	test	r12, r8
	jne	.L3
	mov	rdx, QWORD PTR ROW_SHIFTER[rip]
	mov	ecx, ebp
	sal	rdx, cl
	or	rax, rdx
.L3:
	mov	QWORD PTR [r15], rax
	add	rbp, 1
	cmp	QWORD PTR MATRIX_COLS[rip], rbp
	ja	.L2
.L4:
	mov	rdi, r13
	call	unselect_row@PLT
	xor	eax, eax
	cmp	QWORD PTR [r15], r14
	setne	al
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_cols_on_row, .-read_cols_on_row
	.comm	col_pins,8,8
	.comm	ROW_SHIFTER,8,8
	.comm	MATRIX_COLS,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_matrix.c_read_cols_on_row.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_cols_on_row, %function
read_cols_on_row:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, #0
	mov	r6, r1
	ldr	r2, [r0, r1, lsl #2]
	sub	sp, sp, #12
	str	r0, [sp, #4]
	str	r4, [r5, r1, lsl #2]
	mov	r0, r1
	ldr	fp, .L10
	str	r2, [sp]
	bl	select_row
	mov	r0, #30
	bl	wait_us
	ldr	r3, [fp]
	add	r10, r5, r6, lsl #2
	cmp	r3, r4
	beq	.L4
	ldr	r9, .L10+4
	ldr	r8, .L10+8
.L2:
	ldr	r3, [r9]
	ldr	r7, [r3, r4, lsl #2]
	lsr	r0, r7, #4
	bl	_SFR_IO8
	mov	r5, r0
	and	r0, r7, #15
	bl	_BV
	tst	r5, r0
	ldr	r3, [r10]
	ldreq	r1, [r8]
	orreq	r3, r3, r1, lsl r4
	str	r3, [r10]
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L2
.L4:
	mov	r0, r6
	bl	unselect_row
	ldr	r3, [sp, #4]
	ldr	r0, [r3, r6, lsl #2]
	ldr	r3, [sp]
	subs	r0, r0, r3
	movne	r0, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	MATRIX_COLS
	.word	col_pins
	.word	ROW_SHIFTER
	.size	read_cols_on_row, .-read_cols_on_row
	.comm	col_pins,4,4
	.comm	ROW_SHIFTER,4,4
	.comm	MATRIX_COLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
