	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_detect_address
_i2c_detect_address:                    ## @i2c_detect_address
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rdi), %r12d
	movl	%r12d, %edi
	callq	_i2c_check_7bit_addr_validity_strict
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_warn
	jmp	LBB0_15
LBB0_2:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_i2c_check_addr_busy
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_3
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_i2c_default_probe
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	leaq	-56(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r12d, -56(%rbp)
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	*(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %r13d
	jmp	LBB0_15
LBB0_6:
	movq	-48(%rbp), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_7
## %bb.8:
	movq	_I2C_CLASS_DEPRECATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.9:
	leaq	4(%r15), %rdi
	movl	-56(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	-48(%rbp), %rdx
LBB0_10:
	leaq	4(%r15), %rbx
	movl	-56(%rbp), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	addq	$4, %rax
	addq	$8, %r14
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_14
LBB0_7:
	addq	$4, %r15
	movq	16(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %ecx
	jmp	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rdx
	movl	-56(%rbp), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
LBB0_13:
	callq	_dev_err
LBB0_14:
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid probe address 0x%02x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"%s detection function provided no name for 0x%x\n"

	.comm	_I2C_CLASS_DEPRECATED,4,2       ## @I2C_CLASS_DEPRECATED
L_.str.2:                               ## @.str.2
	.asciz	"This adapter will soon drop class based instantiation of devices. Please make sure client 0x%02x gets instantiated by other means. Check 'Documentation/i2c/instantiating-devices.rst' for details.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Creating %s at 0x%02x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed creating %s at 0x%02x\n"

	.no_dead_strip	_i2c_detect_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_detect_address
_i2c_detect_address:                    ; @i2c_detect_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x0, #8]
	ldr	w21, [x0]
	mov	x0, x21
	bl	_i2c_check_7bit_addr_validity_strict
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	add	x0, x20, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_check_addr_busy
	cbz	x0, LBB0_5
LBB0_3:
	mov	w23, #0
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_default_probe
	cbz	w0, LBB0_3
; %bb.6:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w21, [sp]
	ldr	x8, [x19]
	mov	x1, sp
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w23, wzr, w0, eq
	b	LBB0_4
LBB0_8:
	ldr	x2, [sp, #8]
	ldrb	w8, [x2]
	cbz	w8, LBB0_13
; %bb.9:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _I2C_CLASS_DEPRECATED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_CLASS_DEPRECATED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	add	x0, x20, #4
	ldr	w2, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	x2, [sp, #8]
LBB0_11:
	add	x21, x20, #4
	ldr	w3, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	x1, sp
	mov	x0, x20
	bl	_i2c_new_device
	cbz	x0, LBB0_14
; %bb.12:
	add	x0, x0, #4
	add	x1, x19, #8
	bl	_list_add_tail
	b	LBB0_3
LBB0_13:
	add	x0, x20, #4
	ldr	x2, [x19, #16]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	b	LBB0_15
LBB0_14:
	ldr	x2, [sp, #8]
	ldr	w3, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
LBB0_15:
	bl	_dev_err
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid probe address 0x%02x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"%s detection function provided no name for 0x%x\n"

	.comm	_I2C_CLASS_DEPRECATED,4,2       ; @I2C_CLASS_DEPRECATED
l_.str.2:                               ; @.str.2
	.asciz	"This adapter will soon drop class based instantiation of devices. Please make sure client 0x%02x gets instantiated by other means. Check 'Documentation/i2c/instantiating-devices.rst' for details.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Creating %s at 0x%02x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed creating %s at 0x%02x\n"

	.no_dead_strip	_i2c_detect_address
.subsections_via_symbols
