	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pins
_init_pins:                             ## @init_pins
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_unselect_rows
	movl	$7, -28(%rbp)
	movq	_PORT_EXPANDER_ADDRESS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	%edi, %edi
	leaq	-28(%rbp), %r14
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	movl	$20, %r8d
	callq	_i2c_writeReg
	movl	(%rbx), %edi
	addl	%edi, %edi
	movl	$6, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	movl	$20, %r8d
	callq	_i2c_writeReg
	movq	_MATRIX_COLS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_col_pins@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %ecx
	cmpl	$10, %ecx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_setPinInputHigh
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_EXPANDER_ADDRESS,4,2      ## @PORT_EXPANDER_ADDRESS
	.comm	_MATRIX_COLS,4,2                ## @MATRIX_COLS
	.comm	_col_pins,8,3                   ## @col_pins
	.no_dead_strip	_init_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pins
_init_pins:                             ; @init_pins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_unselect_rows
	mov	w8, #7
	str	w8, [sp, #12]
Lloh0:
	adrp	x19, _PORT_EXPANDER_ADDRESS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PORT_EXPANDER_ADDRESS@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w0, w8, #1
	add	x2, sp, #12
	mov	w1, #0
	mov	w3, #1
	mov	w4, #20
	bl	_i2c_writeReg
	ldr	w8, [x19]
	lsl	w0, w8, #1
	add	x2, sp, #12
	mov	w1, #6
	mov	w3, #1
	mov	w4, #20
	bl	_i2c_writeReg
Lloh2:
	adrp	x19, _MATRIX_COLS@GOTPAGE
Lloh3:
	ldr	x19, [x19, _MATRIX_COLS@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
Lloh4:
	adrp	x21, _col_pins@GOTPAGE
Lloh5:
	ldr	x21, [x21, _col_pins@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w20, #1
	cmp	w9, #10
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	bl	_setPinInputHigh
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_EXPANDER_ADDRESS,4,2      ; @PORT_EXPANDER_ADDRESS
	.comm	_MATRIX_COLS,4,2                ; @MATRIX_COLS
	.comm	_col_pins,8,3                   ; @col_pins
	.no_dead_strip	_init_pins
.subsections_via_symbols
