	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_do_i2c_scan            ## -- Begin function cx231xx_do_i2c_scan
	.p2align	4, 0x90
_cx231xx_do_i2c_scan:                   ## @cx231xx_do_i2c_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx231xx_info
	leaq	-41(%rbp), %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_cx231xx_info
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	addl	$2, %ebx
	cmpq	$128, %r12
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, (%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_i2c_master_recv
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_i2c_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	leaq	L_.str.2(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rcx
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx231xx_info
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": Checking for I2C devices ..\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: i2c scan: found device @ 0x%x  [%s]\n"

	.comm	_i2c_devs,8,3                   ## @i2c_devs
L_.str.2:                               ## @.str.2
	.asciz	"???"

L_.str.3:                               ## @.str.3
	.asciz	": Completed Checking for I2C devices.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_do_i2c_scan            ; -- Begin function cx231xx_do_i2c_scan
	.p2align	2
_cx231xx_do_i2c_scan:                   ; @cx231xx_do_i2c_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cx231xx_info
	mov	w22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _i2c_devs@GOTPAGE
Lloh3:
	ldr	x24, [x24, _i2c_devs@GOTPAGEOFF]
Lloh4:
	adrp	x25, l_.str.2@PAGE
Lloh5:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	add	w22, w22, #2
	cmp	x23, #128
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [x19]
	add	x1, sp, #31
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_master_recv
	tbnz	w0, #31, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x23, lsl #3]
	cmp	x8, #0
	csel	x8, x25, x8, eq
	ldr	w9, [x20]
	stp	x22, x8, [sp, #8]
	str	x9, [sp]
	mov	x0, x21
	bl	_cx231xx_info
	b	LBB0_1
LBB0_4:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_cx231xx_info
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": Checking for I2C devices ..\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: i2c scan: found device @ 0x%x  [%s]\n"

	.comm	_i2c_devs,8,3                   ; @i2c_devs
l_.str.2:                               ; @.str.2
	.asciz	"???"

l_.str.3:                               ; @.str.3
	.asciz	": Completed Checking for I2C devices.\n"

.subsections_via_symbols
