	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocores_i2c_probe
_ocores_i2c_probe:                      ## @ocores_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	64(%rax), %rdi
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 60(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	60(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_46
LBB0_5:
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rax), %ebx
	movl	%ebx, 56(%r12)
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r14), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_oc_setreg_io_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_oc_getreg_io_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
LBB0_10:
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movl	28(%r15), %eax
	movl	%eax, 52(%r12)
	movl	(%r15), %edx
	movl	%edx, (%r12)
	movl	24(%r15), %eax
	movl	%eax, 48(%r12)
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, 4(%r12)
	jmp	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ocores_i2c_of_probe
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_46
## %bb.15:
	movl	(%r12), %edx
	jmp	LBB0_16
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_46
LBB0_13:
	movl	$100, 4(%r12)
LBB0_16:
	testl	%edx, %edx
	je	LBB0_17
## %bb.18:
	cmpl	$0, 44(%r12)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_17:
	movl	$1, (%r12)
	movl	$1, %edx
	cmpl	$0, 44(%r12)
	je	LBB0_20
LBB0_19:
	cmpl	$0, 40(%r12)
	jne	LBB0_30
LBB0_20:
	testq	%r15, %r15
	je	LBB0_22
## %bb.21:
	movl	8(%r15), %eax
	cmpl	$4, %edx
	je	LBB0_27
LBB0_24:
	cmpl	$2, %edx
	je	LBB0_28
## %bb.25:
	cmpl	$1, %edx
	jne	LBB0_44
## %bb.26:
	movq	_oc_setreg_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_oc_getreg_8@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_8:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_46
LBB0_22:
	movl	(%r14), %edi
	callq	_of_device_is_big_endian
	movl	(%r12), %edx
	cmpl	$4, %edx
	jne	LBB0_24
LBB0_27:
	testl	%eax, %eax
	movq	_oc_setreg_32be@GOTPCREL(%rip), %rax
	cmoveq	_oc_setreg_32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_oc_getreg_32be@GOTPCREL(%rip), %rax
	cmoveq	_oc_getreg_32@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_28:
	testl	%eax, %eax
	movq	_oc_setreg_16be@GOTPCREL(%rip), %rax
	cmoveq	_oc_setreg_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_oc_getreg_16be@GOTPCREL(%rip), %rax
	cmoveq	_oc_getreg_16@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
LBB0_30:
	leaq	36(%r12), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_34
## %bb.31:
	movq	_ocores_xfer_polling@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ocores_algorithm@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ocores_i2c_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_35
## %bb.32:
	movq	(%rax), %rax
	movq	_TYPE_SIFIVE_REV0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.33:
	movq	_OCORES_FLAG_BROKEN_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
	jmp	LBB0_35
LBB0_34:
	testl	%r13d, %r13d
	js	LBB0_46
LBB0_35:
	movq	_ocores_algorithm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ocores_xfer_polling@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.36:
	movq	_ocores_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %r8d
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_45
LBB0_38:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ocores_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_45
## %bb.39:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	_ocores_adapter@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, 24(%r12)
	movl	(%r14), %eax
	movq	%rbx, %r14
	movl	%eax, 16(%r12)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_45
## %bb.40:
	xorl	%r13d, %r13d
	testq	%r15, %r15
	je	LBB0_46
## %bb.41:
	cmpl	$0, 12(%r15)
	jle	LBB0_46
## %bb.42:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_i2c_new_device
	incq	%rbx
	movslq	12(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_43
	jmp	LBB0_46
LBB0_44:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_45:
	movl	8(%r12), %edi
	callq	_clk_disable_unprepare
LBB0_46:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get I/O resource.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_oc_setreg_io_8,4,2             ## @oc_setreg_io_8
	.comm	_oc_getreg_io_8,4,2             ## @oc_getreg_io_8
	.comm	_oc_setreg_8,4,2                ## @oc_setreg_8
	.comm	_oc_getreg_8,4,2                ## @oc_getreg_8
	.comm	_oc_setreg_16be,4,2             ## @oc_setreg_16be
	.comm	_oc_setreg_16,4,2               ## @oc_setreg_16
	.comm	_oc_getreg_16be,4,2             ## @oc_getreg_16be
	.comm	_oc_getreg_16,4,2               ## @oc_getreg_16
	.comm	_oc_setreg_32be,4,2             ## @oc_setreg_32be
	.comm	_oc_setreg_32,4,2               ## @oc_setreg_32
	.comm	_oc_getreg_32be,4,2             ## @oc_getreg_32be
	.comm	_oc_getreg_32,4,2               ## @oc_getreg_32
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported I/O width (%d)\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ocores_xfer_polling,8,3        ## @ocores_xfer_polling
	.comm	_ocores_algorithm,8,3           ## @ocores_algorithm
	.comm	_ocores_i2c_match,4,2           ## @ocores_i2c_match
	.comm	_TYPE_SIFIVE_REV0,8,3           ## @TYPE_SIFIVE_REV0
	.comm	_OCORES_FLAG_BROKEN_IRQ,4,2     ## @OCORES_FLAG_BROKEN_IRQ
	.comm	_ocores_isr,4,2                 ## @ocores_isr
L_.str.2:                               ## @.str.2
	.asciz	"Cannot claim IRQ\n"

	.comm	_ocores_adapter,16,3            ## @ocores_adapter
	.no_dead_strip	_ocores_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocores_i2c_probe
_ocores_i2c_probe:                      ; @ocores_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x0, #64
	bl	_spin_lock_init
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x19, #60]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_46
LBB0_6:
Lloh8:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_23
; %bb.7:
	ldr	w21, [x0]
	str	w21, [x19, #56]
	bl	_resource_size
	mov	x2, x0
	ldr	w3, [x20, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_devm_request_region
	cbz	w0, LBB0_24
; %bb.8:
Lloh11:
	adrp	x8, _oc_setreg_io_8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _oc_setreg_io_8@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _oc_getreg_io_8@GOTPAGE
Lloh15:
	ldr	x9, [x9, _oc_getreg_io_8@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
LBB0_9:
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.10:
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	d0, [x21, #24]
	str	d0, [x19, #48]
	ldr	w9, [x21, #4]
	cbnz	w9, LBB0_12
; %bb.11:
	mov	w9, #100
LBB0_12:
	str	w9, [x19, #4]
	cbz	w8, LBB0_16
LBB0_13:
	ldr	w9, [x19, #44]
	cbnz	w9, LBB0_17
	b	LBB0_18
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_ocores_i2c_of_probe
	mov	x22, x0
	cbnz	w0, LBB0_46
; %bb.15:
	ldr	w8, [x19]
	cbnz	w8, LBB0_13
LBB0_16:
	mov	w8, #1
	str	w8, [x19]
	ldr	w9, [x19, #44]
	cbz	w9, LBB0_18
LBB0_17:
	ldr	w9, [x19, #40]
	cbnz	w9, LBB0_30
LBB0_18:
	cbz	x21, LBB0_25
; %bb.19:
	ldr	w0, [x21, #8]
	cmp	w8, #4
	b.eq	LBB0_26
LBB0_20:
	cmp	w8, #2
	b.eq	LBB0_27
; %bb.21:
	cmp	w8, #1
	b.ne	LBB0_44
; %bb.22:
Lloh17:
	adrp	x8, _oc_setreg_8@GOTPAGE
Lloh18:
	ldr	x8, [x8, _oc_setreg_8@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #44]
Lloh20:
	adrp	x8, _oc_getreg_8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _oc_getreg_8@GOTPAGEOFF]
	b	LBB0_29
LBB0_23:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_24:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_25:
	ldr	w0, [x20]
	bl	_of_device_is_big_endian
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_20
LBB0_26:
Lloh28:
	adrp	x8, _oc_setreg_32be@GOTPAGE
Lloh29:
	ldr	x8, [x8, _oc_setreg_32be@GOTPAGEOFF]
Lloh30:
	adrp	x9, _oc_setreg_32@GOTPAGE
Lloh31:
	ldr	x9, [x9, _oc_setreg_32@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #44]
Lloh32:
	adrp	x8, _oc_getreg_32be@GOTPAGE
Lloh33:
	ldr	x8, [x8, _oc_getreg_32be@GOTPAGEOFF]
Lloh34:
	adrp	x9, _oc_getreg_32@GOTPAGE
Lloh35:
	ldr	x9, [x9, _oc_getreg_32@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh36:
	adrp	x8, _oc_setreg_16be@GOTPAGE
Lloh37:
	ldr	x8, [x8, _oc_setreg_16be@GOTPAGEOFF]
Lloh38:
	adrp	x9, _oc_setreg_16@GOTPAGE
Lloh39:
	ldr	x9, [x9, _oc_setreg_16@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #44]
Lloh40:
	adrp	x8, _oc_getreg_16be@GOTPAGE
Lloh41:
	ldr	x8, [x8, _oc_getreg_16be@GOTPAGEOFF]
Lloh42:
	adrp	x9, _oc_getreg_16@GOTPAGE
Lloh43:
	ldr	x9, [x9, _oc_getreg_16@GOTPAGEOFF]
LBB0_28:
	csel	x8, x9, x8, eq
LBB0_29:
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_30:
	add	x0, x19, #36
	bl	_init_waitqueue_head
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
Lloh44:
	adrp	x8, _ENXIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x23, _ocores_xfer_polling@GOTPAGE
Lloh48:
	ldr	x23, [x23, _ocores_xfer_polling@GOTPAGEOFF]
Lloh49:
	adrp	x24, _ocores_algorithm@GOTPAGE
Lloh50:
	ldr	x24, [x24, _ocores_algorithm@GOTPAGEOFF]
	cmn	w0, w8
	b.ne	LBB0_34
; %bb.31:
	ldr	x8, [x23]
	str	x8, [x24]
Lloh51:
	adrp	x8, _ocores_i2c_match@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ocores_i2c_match@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_of_match_node
	cbz	x0, LBB0_35
; %bb.32:
	ldr	x8, [x0]
Lloh54:
	adrp	x9, _TYPE_SIFIVE_REV0@GOTPAGE
Lloh55:
	ldr	x9, [x9, _TYPE_SIFIVE_REV0@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.33:
Lloh57:
	adrp	x8, _OCORES_FLAG_BROKEN_IRQ@GOTPAGE
Lloh58:
	ldr	x8, [x8, _OCORES_FLAG_BROKEN_IRQ@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_35
LBB0_34:
	tbnz	w22, #31, LBB0_46
LBB0_35:
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_38
; %bb.36:
Lloh60:
	adrp	x8, _ocores_isr@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ocores_isr@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	ldr	w4, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_any_context_irq
	cbz	w0, LBB0_38
; %bb.37:
	mov	x22, x0
Lloh63:
	adrp	x1, l_.str.2@PAGE
Lloh64:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_45
LBB0_38:
	mov	x0, x20
	mov	x1, x19
	bl	_ocores_init
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.39:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x23, x19, #16
Lloh65:
	adrp	x8, _ocores_adapter@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ocores_adapter@GOTPAGEOFF]
Lloh67:
	ldr	q0, [x8]
	str	q0, [x19, #16]
	mov	x0, x23
	mov	x1, x19
	bl	_i2c_set_adapdata
	str	x20, [x19, #24]
	ldr	w8, [x20]
	str	w8, [x19, #16]
	mov	x0, x23
	bl	_i2c_add_adapter
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.40:
	cbz	x21, LBB0_47
; %bb.41:
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.lt	LBB0_47
; %bb.42:
	mov	x19, #0
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x1, x19, x8
	mov	x0, x23
	bl	_i2c_new_device
	mov	w22, #0
	add	x19, x19, #1
	ldrsw	x8, [x21, #12]
	cmp	x19, x8
	b.lt	LBB0_43
	b	LBB0_46
LBB0_44:
	str	x8, [sp]
Lloh68:
	adrp	x1, l_.str.1@PAGE
Lloh69:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh70:
	adrp	x8, _EINVAL@GOTPAGE
Lloh71:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_45:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_46:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_47:
	mov	w22, #0
	b	LBB0_46
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get I/O resource.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_oc_setreg_io_8,4,2             ; @oc_setreg_io_8
	.comm	_oc_getreg_io_8,4,2             ; @oc_getreg_io_8
	.comm	_oc_setreg_8,4,2                ; @oc_setreg_8
	.comm	_oc_getreg_8,4,2                ; @oc_getreg_8
	.comm	_oc_setreg_16be,4,2             ; @oc_setreg_16be
	.comm	_oc_setreg_16,4,2               ; @oc_setreg_16
	.comm	_oc_getreg_16be,4,2             ; @oc_getreg_16be
	.comm	_oc_getreg_16,4,2               ; @oc_getreg_16
	.comm	_oc_setreg_32be,4,2             ; @oc_setreg_32be
	.comm	_oc_setreg_32,4,2               ; @oc_setreg_32
	.comm	_oc_getreg_32be,4,2             ; @oc_getreg_32be
	.comm	_oc_getreg_32,4,2               ; @oc_getreg_32
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported I/O width (%d)\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ocores_xfer_polling,8,3        ; @ocores_xfer_polling
	.comm	_ocores_algorithm,8,3           ; @ocores_algorithm
	.comm	_ocores_i2c_match,4,2           ; @ocores_i2c_match
	.comm	_TYPE_SIFIVE_REV0,8,3           ; @TYPE_SIFIVE_REV0
	.comm	_OCORES_FLAG_BROKEN_IRQ,4,2     ; @OCORES_FLAG_BROKEN_IRQ
	.comm	_ocores_isr,4,2                 ; @ocores_isr
l_.str.2:                               ; @.str.2
	.asciz	"Cannot claim IRQ\n"

	.comm	_ocores_adapter,16,3            ; @ocores_adapter
	.no_dead_strip	_ocores_i2c_probe
.subsections_via_symbols
