	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_left_scan                      ## -- Begin function left_scan
	.p2align	4, 0x90
_left_scan:                             ## @left_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_I2C_ADDR_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HOTDOX_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_start
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_i2c_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movl	$0, (%rax)
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_i2c_stop
	movq	_i2c_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_left_config
	leaq	L_.str(%rip), %rbx
LBB0_5:
	xorl	%eax, %eax
	callq	_clear_keyboard
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_print                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_ADDR_WRITE,4,2             ## @I2C_ADDR_WRITE
	.comm	_HOTDOX_I2C_TIMEOUT,4,2         ## @HOTDOX_I2C_TIMEOUT
	.comm	_i2c_initialized,4,2            ## @i2c_initialized
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mcp23017 attached!!!\n"

L_.str.1:                               ## @.str.1
	.asciz	"mcp23017 deattached!!!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_left_scan                      ; -- Begin function left_scan
	.p2align	2
_left_scan:                             ; @left_scan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _I2C_ADDR_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_ADDR_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _HOTDOX_I2C_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOTDOX_I2C_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_start
	cbz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _i2c_initialized@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i2c_initialized@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.2:
	str	wzr, [x8]
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	bl	_i2c_stop
Lloh10:
	adrp	x8, _i2c_initialized@GOTPAGE
Lloh11:
	ldr	x8, [x8, _i2c_initialized@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w9, #1
	str	w9, [x8]
	bl	_left_config
Lloh12:
	adrp	x19, l_.str@PAGE
Lloh13:
	add	x19, x19, l_.str@PAGEOFF
LBB0_6:
	bl	_clear_keyboard
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_print
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_ADDR_WRITE,4,2             ; @I2C_ADDR_WRITE
	.comm	_HOTDOX_I2C_TIMEOUT,4,2         ; @HOTDOX_I2C_TIMEOUT
	.comm	_i2c_initialized,4,2            ; @i2c_initialized
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mcp23017 attached!!!\n"

l_.str.1:                               ; @.str.1
	.asciz	"mcp23017 deattached!!!\n"

.subsections_via_symbols
