	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_I2C_FUNC_SMBUS_READ_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movzwl	(%rbx), %eax
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %r14
	cmpw	(%r14), %ax
	je	LBB0_15
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %r12
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzwl	%ax, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dev_warn
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movzwl	2(%rbx), %eax
	addq	$2, %rbx
	cmpw	(%r14), %ax
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-120(%rax), %ecx
	cmpw	$-118, %cx
	jbe	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzwl	%ax, %esi
	movq	%r15, %rdi
	callq	_i2c_check_addr
	movzwl	(%rbx), %esi
	movzwl	%si, %edx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	andl	$-8, %eax
	cmpl	$48, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$-16, %edx
	cmpl	$80, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_I2C_FUNC_SMBUS_QUICK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_check_functionality
	movzwl	(%rbx), %esi
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_QUICK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movzwl	%si, %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_i2c_smbus_xfer
	testq	%rax, %rax
	js	LBB0_13
LBB0_14:
	movzwl	(%rbx), %eax
	cmpw	(%r14), %ax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_16
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_17
LBB0_18:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_16:
	movw	%ax, (%rsi)
	movq	%r15, %rdi
	callq	_i2c_new_device
	movq	%rax, %rbx
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_READ_BYTE,4,2   ## @I2C_FUNC_SMBUS_READ_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probing not supported\n"

	.comm	_I2C_CLIENT_END,2,1             ## @I2C_CLIENT_END
L_.str.1:                               ## @.str.1
	.asciz	"Invalid 7-bit address 0x%02x\n"

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

	.comm	_I2C_FUNC_SMBUS_QUICK,4,2       ## @I2C_FUNC_SMBUS_QUICK
	.comm	_I2C_SMBUS_READ,4,2             ## @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE,4,2             ## @I2C_SMBUS_BYTE
	.comm	_I2C_SMBUS_WRITE,4,2            ## @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_QUICK,4,2            ## @I2C_SMBUS_QUICK
L_.str.3:                               ## @.str.3
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_READ_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_15
; %bb.1:
	ldrh	w8, [x21]
Lloh3:
	adrp	x24, _I2C_CLIENT_END@GOTPAGE
Lloh4:
	ldr	x24, [x24, _I2C_CLIENT_END@GOTPAGEOFF]
	ldrh	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.2:
	mov	w25, #65418
Lloh5:
	adrp	x26, _I2C_SMBUS_READ@GOTPAGE
Lloh6:
	ldr	x26, [x26, _I2C_SMBUS_READ@GOTPAGEOFF]
Lloh7:
	adrp	x27, _I2C_SMBUS_BYTE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _I2C_SMBUS_BYTE@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh11:
	adrp	x28, _I2C_FUNC_SMBUS_QUICK@GOTPAGE
Lloh12:
	ldr	x28, [x28, _I2C_FUNC_SMBUS_QUICK@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.2@PAGE
Lloh14:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w2, w8, #0xffff
	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_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #120
	cmp	w25, w9, uxth
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w1, w8, #0xffff
	mov	x0, x19
	bl	_i2c_check_addr
	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
	and	w8, w1, #0xfff8
	cmp	w8, #48
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w1, #0xfff0
	cmp	w8, #80
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_i2c_check_functionality
	ldrh	w1, [x21]
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _I2C_SMBUS_QUICK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_SMBUS_QUICK@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	mov	w4, #0
	mov	x6, #0
	bl	_i2c_smbus_xfer
	tbnz	x0, #63, LBB0_4
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x26]
	ldr	w5, [x27]
	add	x6, sp, #8
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	mov	w4, #0
	bl	_i2c_smbus_xfer
	tbnz	x0, #63, LBB0_4
LBB0_13:
	ldrh	w8, [x21]
	ldrh	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_16
LBB0_14:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, #0
	b	LBB0_17
LBB0_15:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, #0
	b	LBB0_17
LBB0_16:
	strh	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_new_device
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_READ_BYTE,4,2   ; @I2C_FUNC_SMBUS_READ_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probing not supported\n"

	.comm	_I2C_CLIENT_END,2,1             ; @I2C_CLIENT_END
l_.str.1:                               ; @.str.1
	.asciz	"Invalid 7-bit address 0x%02x\n"

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

	.comm	_I2C_FUNC_SMBUS_QUICK,4,2       ; @I2C_FUNC_SMBUS_QUICK
	.comm	_I2C_SMBUS_READ,4,2             ; @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE,4,2             ; @I2C_SMBUS_BYTE
	.comm	_I2C_SMBUS_WRITE,4,2            ; @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_QUICK,4,2            ; @I2C_SMBUS_QUICK
l_.str.3:                               ; @.str.3
	.asciz	"Probing failed, no device found\n"

.subsections_via_symbols
