	.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	%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	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rdx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_snprintf
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_clk_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_3:
	addq	$4, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_sh_mobile_i2c_hook_irqs
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_6:
	movq	%r15, 64(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_resource_size
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pm_suspend_ignore_children
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	leaq	24(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_sh_mobile_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	%r15, 40(%r14)
	movl	$5, 24(%r14)
	movl	(%r12), %eax
	movl	%eax, 28(%r14)
	movl	32(%r14), %edi
	movl	8(%r12), %esi
	movl	$4, %edx
	callq	_strlcpy
	leaq	20(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	callq	_i2c_add_numbered_adapter
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.9:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	callq	_iounmap
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sh_mobile_i2c_hook_irqs
LBB0_14:
	movl	(%r14), %edi
	callq	_clk_put
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate private data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"i2c%d"

L_.str.2:                               ## @.str.2
	.asciz	"cannot get clock \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot request IRQ\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.4:                               ## @.str.4
	.asciz	"cannot find IO resource\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.5:                               ## @.str.5
	.asciz	"cannot map IO\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_sh_mobile_i2c_algorithm,4,2    ## @sh_mobile_i2c_algorithm
L_.str.6:                               ## @.str.6
	.asciz	"cannot add numbered adapter\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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x21, x20
	ldr	w3, [x21], #4
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x22, sp, #16
	add	x0, sp, #16
	mov	w1, #8
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x21
	bl	_clk_get
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_15
LBB0_3:
	add	x0, x20, #4
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	bl	_sh_mobile_i2c_hook_irqs
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_14
LBB0_6:
	str	x21, [x19, #64]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh17:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	bl	_resource_size
	mov	x1, x0
	ldr	w0, [x22]
	bl	_ioremap
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x21
	mov	w1, #1
	bl	_pm_suspend_ignore_children
	mov	x0, x21
	bl	_pm_runtime_enable
	add	x22, x19, #24
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh20:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh23:
	adrp	x8, _sh_mobile_i2c_algorithm@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sh_mobile_i2c_algorithm@GOTPAGEOFF]
	stp	x21, x8, [x19, #40]
	mov	w8, #5
	str	w8, [x19, #24]
	ldr	w8, [x20]
	str	w8, [x19, #28]
	ldr	w0, [x19, #32]
	ldr	w1, [x20, #8]
	mov	w2, #4
	bl	_strlcpy
	add	x0, x19, #20
	bl	_spin_lock_init
	add	x0, x19, #16
	bl	_init_waitqueue_head
	mov	x0, x22
	bl	_i2c_add_numbered_adapter
	tbnz	w0, #31, LBB0_18
; %bb.9:
	mov	w22, #0
	b	LBB0_16
LBB0_10:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _ENXIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x20
	mov	w1, #0
	bl	_sh_mobile_i2c_hook_irqs
LBB0_14:
	ldr	w0, [x19]
	bl	_clk_put
LBB0_15:
	mov	x0, x19
	bl	_kfree
LBB0_16:
	ldr	x8, [sp, #24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	mov	x22, x0
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_iounmap
	b	LBB0_13
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate private data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"i2c%d"

l_.str.2:                               ; @.str.2
	.asciz	"cannot get clock \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot request IRQ\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.4:                               ; @.str.4
	.asciz	"cannot find IO resource\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.5:                               ; @.str.5
	.asciz	"cannot map IO\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_sh_mobile_i2c_algorithm,4,2    ; @sh_mobile_i2c_algorithm
l_.str.6:                               ; @.str.6
	.asciz	"cannot add numbered adapter\n"

	.no_dead_strip	_sh_mobile_i2c_probe
.subsections_via_symbols
