	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_i2c_type
_ipath_i2c_type:                        ## @ipath_i2c_type
	.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	%rdi, %r14
	movl	(%rdi), %r13d
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.1:
	movq	_i2c_chains@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jge	LBB0_3
## %bb.2:
	decl	%r13d
	shlq	$3, %r13
	addq	(%rbx), %r13
	jmp	LBB0_13
LBB0_3:
	movq	_i2c_chains@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rsi
	movq	_IPATH_NO_DEV@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rsi
	je	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_i2c_probe
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	8(%rax,%rbx,8), %rsi
	incq	%rbx
	cmpq	(%r12), %rsi
	jne	LBB0_5
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movl	%ebx, %r13d
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_eeprom_reset
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_10:
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rax
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.11:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_12:
	incl	%ebx
	movl	%ebx, (%r14)
	shlq	$3, %r13
	addq	(%r15), %r13
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_chains,8,3                 ## @i2c_chains
	.comm	_IPATH_NO_DEV,8,3               ## @IPATH_NO_DEV
	.no_dead_strip	_ipath_i2c_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_i2c_type
_ipath_i2c_type:                        ; @ipath_i2c_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x20, _i2c_chains@GOTPAGE
Lloh1:
	ldr	x20, [x20, _i2c_chains@GOTPAGEOFF]
	subs	w21, w22, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ge	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	add	x0, x8, w21, uxtw #3
	b	LBB0_14
LBB0_3:
	ldr	x8, [x20]
	ldr	x1, [x8]
Lloh2:
	adrp	x21, _IPATH_NO_DEV@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IPATH_NO_DEV@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x1, x8
	b.eq	LBB0_10
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_i2c_probe
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x22, #1
	ldr	x9, [x20]
	add	x9, x9, x22, lsl #3
	ldr	x1, [x9, #8]
	ldr	x9, [x21]
	mov	x22, x8
	cmp	x1, x9
	b.ne	LBB0_5
; %bb.7:
	cbz	w8, LBB0_10
LBB0_8:
	and	x9, x8, #0xffffffff
	b	LBB0_11
LBB0_9:
	mov	x8, x22
	cbnz	w8, LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_eeprom_reset
	mov	x9, #0
	mov	w8, #0
LBB0_11:
	ldr	x10, [x20]
	ldr	x10, [x10, x9, lsl #3]
	ldr	x11, [x21]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.12:
	mov	x0, #0
	b	LBB0_14
LBB0_13:
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [x20]
	add	x0, x8, x9, lsl #3
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_chains,8,3                 ; @i2c_chains
	.comm	_IPATH_NO_DEV,8,3               ; @IPATH_NO_DEV
	.no_dead_strip	_ipath_i2c_type
.subsections_via_symbols
