	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_i2c_probe
_sh_mobile_i2c_probe:                   ## @sh_mobile_i2c_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 112(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	112(%r15), %edi
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sh_mobile_i2c_hook_irqs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, 104(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%rax, 96(%r15)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 92(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	92(%r15), %edi
	jmp	LBB0_7
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	movl	-36(%rbp), %ecx
	testl	%ecx, %ecx
	movq	_STANDARD_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovel	%edx, %ecx
	testl	%eax, %eax
	cmovnel	%edx, %ecx
	movl	%ecx, 4(%r15)
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_resource_size
	cmpl	$24, %eax
	jl	LBB0_10
## %bb.9:
	movq	_IIC_FLAG_HAS_ICIC67@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 88(%r15)
LBB0_10:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	%r15, %rdi
	callq	*8(%rax)
	jmp	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_sh_mobile_i2c_init
LBB0_13:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.14:
	leaq	84(%r15), %rdi
	movl	$1, %esi
	callq	_sg_init_table
	movq	_DMA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movl	%eax, 72(%r15)
	movl	%eax, 76(%r15)
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	_sh_mobile_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r15)
	movq	_sh_mobile_i2c_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	%r14, 40(%r15)
	movl	$5, 16(%r15)
	movl	8(%r14), %eax
	movl	%eax, 20(%r15)
	movl	(%r14), %eax
	movl	%eax, 32(%r15)
	movl	24(%r15), %edi
	movl	4(%r14), %esi
	movl	$4, %edx
	callq	_strlcpy
	leaq	12(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_init_waitqueue_head
	movq	%r12, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	4(%r15), %ecx
	movl	20(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_sh_mobile_i2c_release_dma
	movl	%r12d, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get clock\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.comm	_STANDARD_MODE,4,2              ## @STANDARD_MODE
	.comm	_IIC_FLAG_HAS_ICIC67,4,2        ## @IIC_FLAG_HAS_ICIC67
	.comm	_DMA_NONE,4,2                   ## @DMA_NONE
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_sh_mobile_i2c_algorithm,4,2    ## @sh_mobile_i2c_algorithm
	.comm	_sh_mobile_i2c_quirks,4,2       ## @sh_mobile_i2c_quirks
L_.str.2:                               ## @.str.2
	.asciz	"I2C adapter %d, bus speed %lu Hz\n"

	.no_dead_strip	_sh_mobile_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_i2c_probe
_sh_mobile_i2c_probe:                   ; @sh_mobile_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #112]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #112]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_sh_mobile_i2c_hook_irqs
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	str	x19, [x20, #104]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	str	x0, [x20, #96]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #92]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x20, #92]
	b	LBB0_3
LBB0_9:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	ldr	w8, [sp, #12]
	cmp	w8, #0
Lloh13:
	adrp	x9, _STANDARD_MODE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _STANDARD_MODE@GOTPAGEOFF]
	ccmp	w0, #0, #0, ne
Lloh15:
	ldr	w9, [x9]
	csel	w8, w8, w9, eq
	mov	w9, #1
	stp	w9, w8, [x20]
	mov	x0, x21
	bl	_resource_size
	cmp	w0, #24
	b.lt	LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _IIC_FLAG_HAS_ICIC67@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IIC_FLAG_HAS_ICIC67@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20, #88]
	orr	w8, w9, w8
	str	w8, [x20, #88]
LBB0_11:
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_of_device_get_match_data
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	x8, [x0, #8]
	mov	x0, x20
	blr	x8
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_sh_mobile_i2c_init
LBB0_14:
	mov	x21, x0
	mov	x0, x19
	bl	_pm_runtime_put_sync
	cbnz	w21, LBB0_6
; %bb.15:
	add	x0, x20, #84
	mov	w1, #1
	bl	_sg_init_table
Lloh19:
	adrp	x8, _DMA_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #80]
Lloh22:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	stp	w0, w0, [x20, #72]
	add	x21, x20, #16
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
Lloh25:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20, #64]
Lloh28:
	adrp	x8, _sh_mobile_i2c_algorithm@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sh_mobile_i2c_algorithm@GOTPAGEOFF]
	str	x8, [x20, #56]
Lloh30:
	adrp	x8, _sh_mobile_i2c_quirks@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sh_mobile_i2c_quirks@GOTPAGEOFF]
	stp	x19, x8, [x20, #40]
	mov	w8, #5
	ldr	w9, [x19, #8]
	stp	w8, w9, [x20, #16]
	ldp	w8, w1, [x19]
	str	w8, [x20, #32]
	ldr	w0, [x20, #24]
	mov	w2, #4
	bl	_strlcpy
	add	x0, x20, #12
	bl	_spin_lock_init
	add	x0, x20, #8
	bl	_init_waitqueue_head
	mov	x0, x21
	bl	_i2c_add_numbered_adapter
	tbnz	w0, #31, LBB0_17
; %bb.16:
	ldr	w2, [x20, #20]
	ldr	w3, [x20, #4]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_6
LBB0_17:
	mov	x21, x0
	mov	x0, x20
	bl	_sh_mobile_i2c_release_dma
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get clock\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.comm	_STANDARD_MODE,4,2              ; @STANDARD_MODE
	.comm	_IIC_FLAG_HAS_ICIC67,4,2        ; @IIC_FLAG_HAS_ICIC67
	.comm	_DMA_NONE,4,2                   ; @DMA_NONE
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_sh_mobile_i2c_algorithm,4,2    ; @sh_mobile_i2c_algorithm
	.comm	_sh_mobile_i2c_quirks,4,2       ; @sh_mobile_i2c_quirks
l_.str.2:                               ; @.str.2
	.asciz	"I2C adapter %d, bus speed %lu Hz\n"

	.no_dead_strip	_sh_mobile_i2c_probe
.subsections_via_symbols
