	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_detect
_i2c_detect:                            ## @i2c_detect
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_i2c_adapter_id
	xorl	%ebx, %ebx
	cmpl	$0, 16(%r14)
	je	LBB0_12
## %bb.1:
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.2:
	movl	(%r12), %edx
	movq	_I2C_CLASS_DEPRECATED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_4
## %bb.3:
	addq	$4, %r12
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_12
LBB0_4:
	testl	%edx, 8(%r14)
	je	LBB0_12
## %bb.5:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movq	%r12, 8(%rax)
	movzwl	(%r15), %eax
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpw	(%rcx), %ax
	je	LBB0_11
## %bb.8:
	addq	$4, %r12
	addq	$2, %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzwl	%ax, %ecx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	movzwl	-2(%r15), %eax
	movw	%ax, (%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_i2c_detect_address
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	movzwl	(%r15), %eax
	addq	$2, %r15
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jne	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLASS_DEPRECATED,4,2       ## @I2C_CLASS_DEPRECATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This adapter dropped support for I2C classes and won't auto-detect %s devices anymore. If you need it, check 'Documentation/i2c/instantiating-devices.rst' for alternatives.\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2C_CLIENT_END,2,1             ## @I2C_CLIENT_END
L_.str.1:                               ## @.str.1
	.asciz	"found normal entry for adapter %d, addr 0x%02x\n"

	.no_dead_strip	_i2c_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_detect
_i2c_detect:                            ; @i2c_detect
	.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, x1
	mov	x22, x0
	bl	_i2c_adapter_id
	ldr	x23, [x19]
	ldr	w8, [x19, #16]
	cmp	w8, #0
	ccmp	x23, #0, #4, ne
	b.ne	LBB0_2
LBB0_1:
	mov	w24, #0
	b	LBB0_13
LBB0_2:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _I2C_CLASS_DEPRECATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_CLASS_DEPRECATED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	add	x0, x22, #4
	ldr	w2, [x19, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w24, #0
	b	LBB0_13
LBB0_4:
	ldr	w9, [x19, #8]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
	mov	x20, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	str	x22, [x0, #8]
	ldrh	w8, [x23]
Lloh8:
	adrp	x25, _I2C_CLIENT_END@GOTPAGE
Lloh9:
	ldr	x25, [x25, _I2C_CLIENT_END@GOTPAGEOFF]
	ldrh	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	mov	w24, #0
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_9:
	add	x22, x22, #4
	add	x26, x23, #2
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_dev_dbg
	ldurh	w8, [x26, #-2]
	strh	w8, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_detect_address
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrh	w8, [x26], #2
	ldrh	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_kfree
LBB0_13:
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLASS_DEPRECATED,4,2       ; @I2C_CLASS_DEPRECATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This adapter dropped support for I2C classes and won't auto-detect %s devices anymore. If you need it, check 'Documentation/i2c/instantiating-devices.rst' for alternatives.\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2C_CLIENT_END,2,1             ; @I2C_CLIENT_END
l_.str.1:                               ; @.str.1
	.asciz	"found normal entry for adapter %d, addr 0x%02x\n"

	.no_dead_strip	_i2c_detect
.subsections_via_symbols
