	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_bus
_scan_bus:                              ## @scan_bus
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r13b
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%r14, %rdi
	callq	_skip_get_range
	movq	%rax, %rcx
	shrq	$32, %rcx
	cmpl	%ecx, %eax
	jle	LBB0_10
## %bb.45:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	jmp	LBB0_46
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_47
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $r15
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	jmp	LBB0_4
LBB0_6:
	movl	%r15d, %ebx
	shrl	$31, %ebx
	addl	%r15d, %ebx
	sarl	%ebx
	leal	4(,%rbx,4), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	incl	%ebx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_skip_get_tokens
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_4:
	movb	$1, %r14b
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_10:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rax, %r12
                                        ## implicit-def: $r15
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
LBB0_11:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	setne	%bl
	leaq	L_.str.4(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	cmpl	-88(%rbp), %r12d                ## 4-byte Folded Reload
	setl	%al
	andb	%bl, %al
	movb	%al, -45(%rbp)                  ## 1-byte Spill
	andb	%bl, %r14b
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	setle	%al
	xorb	$1, %r14b
	orb	%al, %r14b
	movl	%ecx, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
	testb	$1, %r13b
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %r14d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_15 Depth=2
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	%r14d
	cmpl	$127, %r14d
	je	LBB0_35
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	cmpb	$0, -45(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpl	-104(%rbp), %r14d               ## 4-byte Folded Reload
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpl	-88(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_34
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=2
	cmpb	$0, -92(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r14d, (%r15,%rax,4)
	je	LBB0_34
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=3
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_23
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=2
	leal	(%r14,%r14), %ebx
	leaq	16(%rbp), %rdx
	movl	%ebx, (%rdx)
	movl	$1, 4(%rdx)
	movq	$0, 24(%rdx)
	movq	_I2CRSTCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_19
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=2
	testb	$1, %r13b
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_15 Depth=2
	leaq	16(%rbp), %rdx
	movl	%ebx, (%rdx)
	movl	$1, 4(%rdx)
	movq	_I2CSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ioctl
	movl	%eax, %r13d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	%rcx, %rax
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	_I2CSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ioctl
	testl	%r13d, %r13d
	jne	LBB0_33
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=2
	leaq	-108(%rbp), %rax
	movq	%rax, -120(%rbp)
	movl	$1, -136(%rbp)
	movq	_IIC_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movl	%ebx, -132(%rbp)
	leaq	-136(%rbp), %rax
	movq	%rax, -152(%rbp)
	movl	$1, -160(%rbp)
	movq	_I2CRDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	-168(%rbp), %rdx
	xorl	%eax, %eax
	callq	_ioctl
	movl	%eax, %r13d
	testl	%r13d, %r13d
	jne	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	-60(%rbp)                       ## 4-byte Folded Spill
	leaq	L_.str.7(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	testb	$1, %r13b
	movl	$0, %r13d
	jne	LBB0_12
	jmp	LBB0_37
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_29:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %r14d
LBB0_39:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_40:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_43
## %bb.41:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	callq	_free
LBB0_43:
	testl	%r14d, %r14d
	je	LBB0_44
LBB0_46:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.10(%rip), %rsi
LBB0_47:
	movl	%ebx, %edi
	movq	%r12, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EX_NOINPUT@GOTPCREL(%rip), %rax
LBB0_48:
	movl	(%rax), %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	_EX_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, %r14d
	jmp	LBB0_40
LBB0_37:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_38:
	movl	$10, %edi
	callq	_putchar
	movq	_I2CRSTCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	16(%rbp), %rdx
	xorl	%eax, %eax
	callq	_ioctl
	movl	%eax, %r14d
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening I2C controller (%s) for scanning: %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EX_NOINPUT,4,2                 ## @EX_NOINPUT
L_.str.1:                               ## @.str.1
	.asciz	".."

L_.str.2:                               ## @.str.2
	.asciz	"Error allocating tokens buffer\n"

L_.str.3:                               ## @.str.3
	.asciz	"Skip address out of range\n"

L_.str.4:                               ## @.str.4
	.asciz	"Scanning I2C devices on %s: "

L_.str.5:                               ## @.str.5
	.asciz	"Hardware may not support START/STOP scanning; trying less-reliable read method.\n"

	.comm	_I2CRSTCARD,4,2                 ## @I2CRSTCARD
L_.str.6:                               ## @.str.6
	.asciz	"Controller reset failed\n"

	.comm	_IIC_M_RD,4,2                   ## @IIC_M_RD
	.comm	_I2CRDWR,4,2                    ## @I2CRDWR
	.comm	_I2CSTART,4,2                   ## @I2CSTART
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
	.comm	_I2CSTOP,4,2                    ## @I2CSTOP
L_.str.7:                               ## @.str.7
	.asciz	"%02x "

L_.str.8:                               ## @.str.8
	.asciz	"<none found>"

L_.str.10:                              ## @.str.10
	.asciz	"Error scanning I2C controller (%s): %s\n"

	.comm	_EX_OK,4,2                      ## @EX_OK
	.no_dead_strip	_scan_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_bus
_scan_bus:                              ; @scan_bus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x28, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
Lloh3:
	adrp	x20, _stderr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
Lloh5:
	adrp	x27, _errno@GOTPAGE
Lloh6:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
	mov	w26, #1
	cbz	w28, LBB0_6
; %bb.2:
	mov	x0, x24
	bl	_strlen
	mov	x23, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x24
	bl	_skip_get_range
	lsr	x8, x0, #32
	cmp	w0, w8
	b.le	LBB0_10
; %bb.4:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	bl	_close
	b	LBB0_37
LBB0_5:
	ldr	w20, [x20]
	ldr	x0, [x27]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_38
LBB0_6:
	mov	w27, #0
	mov	w24, #0
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
	b	LBB0_9
LBB0_7:
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w8, w8, #1
	add	w25, w8, #1
	lsl	w0, w25, #2
	bl	_malloc
	cbz	x0, LBB0_41
; %bb.8:
	mov	x1, x0
	mov	x0, x24
	str	x1, [sp, #48]                   ; 8-byte Folded Spill
	mov	x2, x25
	bl	_skip_get_tokens
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	w27, #0
	mov	w24, #0
LBB0_9:
	mov	w23, #1
	b	LBB0_11
LBB0_10:
	mov	x24, x0
	mov	w23, #0
	mov	x27, x8
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
LBB0_11:
	str	w28, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w28, #0
	cset	w20, ne
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	str	x19, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w25, #0
	str	x24, [sp, #56]                  ; 8-byte Folded Spill
	str	x27, [sp, #40]                  ; 8-byte Folded Spill
	cmp	w24, w27
	cset	w8, lt
	and	w19, w20, w8
	str	w23, [sp, #24]                  ; 4-byte Folded Spill
	and	w8, w20, w23
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w10, #1
	cset	w9, lt
	eor	w8, w8, #0x1
	orr	w28, w8, w9
	mov	w23, w10
	mov	w8, #1
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	mov	x20, x8
	tbnz	w8, #0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w24, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w24, w24, #1
	cmp	w24, #127
	b.eq	LBB0_28
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	cbz	w19, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	w24, w8
	b.lt	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	w24, w8
	b.le	LBB0_15
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x8, x23
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	tbnz	w28, #0, LBB0_22
LBB0_20:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w10, [x9]
	cmp	w10, w24
	b.eq	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=2
	lsl	w27, w24, #1
	stp	w27, w26, [x22]
	str	xzr, [x22, #24]
Lloh20:
	adrp	x8, _I2CRSTCARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2CRSTCARD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	str	x22, [sp]
	mov	x0, x21
	bl	_ioctl
	cbnz	w0, LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=2
	tbz	w20, #0, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=2
	stp	w27, w26, [x22]
Lloh23:
	adrp	x8, _I2CSTART@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I2CSTART@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	str	x22, [sp]
	mov	x0, x21
	bl	_ioctl
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _ENODEV@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
Lloh32:
	adrp	x10, _EOPNOTSUPP@GOTPAGE
Lloh33:
	ldr	x10, [x10, _EOPNOTSUPP@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x27, x0
Lloh35:
	adrp	x8, _I2CSTOP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I2CSTOP@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ioctl
	cbnz	w27, LBB0_15
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x8, sp, #68
	str	x8, [sp, #120]
Lloh38:
	adrp	x8, _IIC_M_RD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IIC_M_RD@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	stp	w27, w8, [sp, #108]
	str	w26, [sp, #104]
	add	x8, sp, #104
	str	x8, [sp, #88]
	str	w26, [sp, #80]
Lloh41:
	adrp	x8, _I2CRDWR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _I2CRDWR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x8, sp, #72
	str	x8, [sp]
	mov	x0, x21
	bl	_ioctl
	mov	x27, x0
	cbnz	w27, LBB0_15
LBB0_27:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w25, w25, #1
	str	x24, [sp]
Lloh44:
	adrp	x0, l_.str.7@PAGE
Lloh45:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w25, LBB0_43
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #0
	tbnz	w20, #0, LBB0_12
	b	LBB0_42
LBB0_30:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #0
	b	LBB0_12
LBB0_31:
Lloh46:
	adrp	x20, _stderr@GOTPAGE
Lloh47:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	mov	w22, #-1
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
Lloh50:
	adrp	x27, _errno@GOTPAGE
Lloh51:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
LBB0_32:
	ldp	w23, w28, [sp, #24]             ; 8-byte Folded Reload
LBB0_33:
	mov	x0, x21
	bl	_close
	cbz	w28, LBB0_36
; %bb.34:
	cbz	w23, LBB0_36
; %bb.35:
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_free
LBB0_36:
	cbz	w22, LBB0_40
LBB0_37:
	ldr	w20, [x20]
	ldr	x0, [x27]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_38:
	mov	x0, x20
	bl	_fprintf
Lloh54:
	adrp	x8, _EX_NOINPUT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EX_NOINPUT@GOTPAGEOFF]
LBB0_39:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_40:
Lloh56:
	adrp	x8, _EX_OK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EX_OK@GOTPAGEOFF]
	b	LBB0_39
LBB0_41:
	ldr	w0, [x20]
Lloh58:
	adrp	x1, l_.str.2@PAGE
Lloh59:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	str	xzr, [sp, #48]                  ; 8-byte Folded Spill
	mov	w23, #1
	mov	w22, #-1
	b	LBB0_33
LBB0_42:
Lloh60:
	adrp	x0, l_.str.8@PAGE
Lloh61:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
LBB0_43:
	mov	w0, #10
	bl	_putchar
Lloh62:
	adrp	x8, _I2CRSTCARD@GOTPAGE
Lloh63:
	ldr	x8, [x8, _I2CRSTCARD@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	str	x22, [sp]
	mov	x0, x21
	bl	_ioctl
	mov	x22, x0
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
Lloh65:
	adrp	x27, _errno@GOTPAGE
Lloh66:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh67:
	adrp	x20, _stderr@GOTPAGE
Lloh68:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	b	LBB0_32
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening I2C controller (%s) for scanning: %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EX_NOINPUT,4,2                 ; @EX_NOINPUT
l_.str.1:                               ; @.str.1
	.asciz	".."

l_.str.2:                               ; @.str.2
	.asciz	"Error allocating tokens buffer\n"

l_.str.3:                               ; @.str.3
	.asciz	"Skip address out of range\n"

l_.str.4:                               ; @.str.4
	.asciz	"Scanning I2C devices on %s: "

l_.str.5:                               ; @.str.5
	.asciz	"Hardware may not support START/STOP scanning; trying less-reliable read method.\n"

	.comm	_I2CRSTCARD,4,2                 ; @I2CRSTCARD
l_.str.6:                               ; @.str.6
	.asciz	"Controller reset failed\n"

	.comm	_IIC_M_RD,4,2                   ; @IIC_M_RD
	.comm	_I2CRDWR,4,2                    ; @I2CRDWR
	.comm	_I2CSTART,4,2                   ; @I2CSTART
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
	.comm	_I2CSTOP,4,2                    ; @I2CSTOP
l_.str.7:                               ; @.str.7
	.asciz	"%02x "

l_.str.8:                               ; @.str.8
	.asciz	"<none found>"

l_.str.10:                              ; @.str.10
	.asciz	"Error scanning I2C controller (%s): %s\n"

	.comm	_EX_OK,4,2                      ; @EX_OK
	.no_dead_strip	_scan_bus
.subsections_via_symbols
