	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_versatile_probe
_i2c_versatile_probe:                   ## @i2c_versatile_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_SCL@GOTPCREL(%rip), %rcx
	movq	_SDA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_I2C_CONTROLS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rsi
	callq	_writel
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%r15), %rbx
	movl	%eax, 36(%r15)
	movl	32(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r15, %rax
	addq	$40, %rax
	movq	%rax, 24(%r15)
	leaq	8(%r14), %rax
	movq	%rax, 16(%r15)
	movq	%r15, 40(%r15)
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_i2c_bit_add_numbered_bus
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %rdi
	callq	_i2c_bit_add_bus
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_13:
	movq	(%r15), %rdi
	callq	_iounmap
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
LBB0_15:
	movl	(%r12), %r14d
	movq	%r12, %rdi
	callq	_resource_size
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"versatile-i2c"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCL,4,2                        ## @SCL
	.comm	_SDA,4,2                        ## @SDA
	.comm	_I2C_CONTROLS,8,3               ## @I2C_CONTROLS
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"Versatile I2C adapter"

	.comm	_i2c_versatile_algo,8,3         ## @i2c_versatile_algo
	.no_dead_strip	_i2c_versatile_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_versatile_probe
_i2c_versatile_probe:                   ; @i2c_versatile_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_request_mem_region
	cbz	w0, LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
	ldr	w22, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.4:
Lloh8:
	adrp	x8, _SCL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SDA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDA@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _I2C_CONTROLS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2C_CONTROLS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x0
	mov	x0, x8
	bl	_writel
Lloh17:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	x22, x21, #8
	str	w8, [x21, #36]
	ldr	w0, [x21, #32]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	x9, x20
	ldr	x8, [x9], #8
	add	x10, x21, #40
	stp	x9, x10, [x21, #16]
	str	x21, [x21, #40]
	tbnz	x8, #63, LBB0_12
; %bb.5:
	str	x8, [x22]
	mov	x0, x22
	bl	_i2c_bit_add_numbered_bus
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_16
LBB0_7:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_10:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_11:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_12:
	mov	x0, x22
	bl	_i2c_bit_add_bus
	mov	x22, x0
	tbz	w0, #31, LBB0_6
LBB0_13:
	ldr	x0, [x21]
	bl	_iounmap
LBB0_14:
	mov	x0, x21
	bl	_kfree
LBB0_15:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"versatile-i2c"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCL,4,2                        ; @SCL
	.comm	_SDA,4,2                        ; @SDA
	.comm	_I2C_CONTROLS,8,3               ; @I2C_CONTROLS
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"Versatile I2C adapter"

	.comm	_i2c_versatile_algo,8,3         ; @i2c_versatile_algo
	.no_dead_strip	_i2c_versatile_probe
.subsections_via_symbols
