	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_new_probed_device          ## -- Begin function i2c_new_probed_device
	.p2align	4, 0x90
_i2c_new_probed_device:                 ## @i2c_new_probed_device
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_i2c_default_probe@GOTPCREL(%rip), %r12
LBB0_2:
	movzwl	(%rbx), %eax
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %r13
	cmpw	(%r13), %ax
	jne	LBB0_3
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzwl	2(%rbx), %eax
	addq	$2, %rbx
	cmpw	(%r13), %ax
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	%ax, %edi
	callq	_i2c_check_7bit_addr_validity_strict
	movzwl	(%rbx), %edx
	movq	%r15, %rdi
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %esi
	callq	_i2c_check_addr_busy
	movzwl	(%rbx), %edx
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %esi
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movzwl	(%rbx), %eax
	cmpw	(%r13), %ax
	je	LBB0_11
## %bb.12:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movw	%ax, (%rsi)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_new_device                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLIENT_END,2,1             ## @I2C_CLIENT_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid 7-bit address 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Address 0x%02x already in use, not probing\n"

L_.str.2:                               ## @.str.2
	.asciz	"Probing failed, no device found\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_new_probed_device          ; -- Begin function i2c_new_probed_device
	.p2align	2
_i2c_new_probed_device:                 ; @i2c_new_probed_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _i2c_default_probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i2c_default_probe@GOTPAGEOFF]
	cmp	x3, #0
	csel	x25, x8, x3, eq
	ldrh	w8, [x2]
Lloh2:
	adrp	x24, _I2C_CLIENT_END@GOTPAGE
Lloh3:
	ldr	x24, [x24, _I2C_CLIENT_END@GOTPAGEOFF]
	ldrh	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_1:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x21, x2
	mov	x20, x1
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_dev_warn
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrh	w8, [x21, #2]!
	ldrh	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xffff
	bl	_i2c_check_7bit_addr_validity_strict
	ldrh	w2, [x21]
	tbnz	x0, #63, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x2
	bl	_i2c_check_addr_busy
	ldrh	w1, [x21]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x1, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_dev_dbg
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	blr	x25
	cbz	w0, LBB0_4
; %bb.9:
	ldrh	w8, [x21]
	ldrh	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.10:
	strh	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_i2c_new_device
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLIENT_END,2,1             ; @I2C_CLIENT_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid 7-bit address 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Address 0x%02x already in use, not probing\n"

l_.str.2:                               ; @.str.2
	.asciz	"Probing failed, no device found\n"

.subsections_via_symbols
