	.file	"extr_matrix.c_init_pins.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_pins, @function
init_pins:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	call	unselect_rows@PLT
	mov	eax, DWORD PTR PORT_EXPANDER_ADDRESS[rip]
	mov	rdx, r12
	xor	esi, esi
	mov	r8d, 20
	mov	ecx, 1
	mov	DWORD PTR 4[rsp], 7
	lea	edi, [rax+rax]
	call	i2c_writeReg@PLT
	mov	eax, DWORD PTR PORT_EXPANDER_ADDRESS[rip]
	mov	ecx, 1
	mov	rdx, r12
	mov	r8d, 20
	mov	esi, 6
	lea	edi, [rax+rax]
	call	i2c_writeReg@PLT
	mov	ecx, DWORD PTR MATRIX_COLS[rip]
	xor	eax, eax
	test	ecx, ecx
	jg	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rbx, 1[rax]
	cmp	rax, 10
	ja	.L3
	mov	rax, QWORD PTR col_pins[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	setPinInputHigh@PLT
	mov	ecx, DWORD PTR MATRIX_COLS[rip]
.L3:
	mov	rax, rbx
.L2:
	lea	edx, 1[rax]
	cmp	ecx, edx
	jg	.L4
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	init_pins, .-init_pins
	.comm	col_pins,8,8
	.comm	PORT_EXPANDER_ADDRESS,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
	.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_init_pins.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_pins, %function
init_pins:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #16
	mov	r4, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	unselect_rows
	mov	ip, #7
	ldr	r5, .L11+4
	mov	r3, #1
	ldr	r0, [r5]
	mov	r1, #0
	add	r2, sp, #8
	str	r4, [sp]
	lsl	r0, r0, #1
	str	ip, [sp, #8]
	bl	i2c_writeReg
	ldr	r0, [r5]
	ldr	r5, .L11+8
	mov	r3, #1
	add	r2, sp, #8
	mov	r1, #6
	lsl	r0, r0, #1
	str	r4, [sp]
	bl	i2c_writeReg
	ldr	r2, [r5]
	cmp	r2, #0
	movgt	r3, #0
	ldrgt	r6, .L11+12
	bgt	.L2
	b	.L1
.L4:
	cmp	r3, #10
	bhi	.L3
	ldr	r3, [r6]
	ldr	r0, [r3, r4, lsl #2]
	bl	setPinInputHigh
	ldr	r2, [r5]
.L3:
	mov	r3, r4
.L2:
	add	r4, r3, #1
	cmp	r4, r2
	blt	.L4
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	PORT_EXPANDER_ADDRESS
	.word	MATRIX_COLS
	.word	col_pins
	.size	init_pins, .-init_pins
	.comm	col_pins,4,4
	.comm	PORT_EXPANDER_ADDRESS,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
