	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sil164_detect_slave
_sil164_detect_slave:                   ## @sil164_detect_slave
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	$0, -24(%rbp)
	movq	_SIL164_I2C_ADDR_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -20(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_I2C_BOARD_INFO
	movl	%eax, -16(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i2c_new_device
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sil164_dbg
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIL164_I2C_ADDR_SLAVE,4,2      ## @SIL164_I2C_ADDR_SLAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sil164"

L_.str.1:                               ## @.str.1
	.asciz	"No dual-link slave found."

	.no_dead_strip	_sil164_detect_slave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sil164_detect_slave
_sil164_detect_slave:                   ; @sil164_detect_slave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _SIL164_I2C_ADDR_SLAVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIL164_I2C_ADDR_SLAVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	stp	wzr, w1, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I2C_BOARD_INFO
	str	w0, [sp]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x19
	bl	_i2c_new_device
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sil164_dbg
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SIL164_I2C_ADDR_SLAVE,4,2      ; @SIL164_I2C_ADDR_SLAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sil164"

l_.str.1:                               ; @.str.1
	.asciz	"No dual-link slave found."

	.no_dead_strip	_sil164_detect_slave
.subsections_via_symbols
