	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_probe
_i2c_probe:                             ## @i2c_probe
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_eeprom_reset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ipath_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %esi
	movq	%r15, %rdi
	callq	_i2c_startcmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_ipath_cdbg
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_rd_byte
	movq	%r15, %rdi
	callq	_stop_cmd
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_ipath_cdbg
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed reset probing device 0x%02X\n"

	.comm	_READ_CMD,4,2                   ## @READ_CMD
	.comm	_VERBOSE,4,2                    ## @VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Failed startcmd for device 0x%02X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Response from device 0x%02X\n"

	.no_dead_strip	_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_probe
_i2c_probe:                             ; @i2c_probe
	.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, x1
	mov	x21, x0
	bl	_eeprom_reset
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_ipath_dev_err
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _READ_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _READ_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w19
	mov	x0, x21
	bl	_i2c_startcmd
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_rd_byte
	mov	x0, x21
	bl	_stop_cmd
Lloh10:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x2, x19
	bl	_ipath_cdbg
LBB0_6:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed reset probing device 0x%02X\n"

	.comm	_READ_CMD,4,2                   ; @READ_CMD
	.comm	_VERBOSE,4,2                    ; @VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Failed startcmd for device 0x%02X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Response from device 0x%02X\n"

	.no_dead_strip	_i2c_probe
.subsections_via_symbols
