	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk808_probe
_rk808_probe:                           ## @rk808_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:
	movq	_RK817_ID_MSB@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RK817_ID_LSB@GOTPCREL(%rip), %rcx
LBB0_4:
	movb	(%rcx), %bl
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movzbl	%bl, %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	shll	$8, %r12d
	orl	%r12d, %r13d
	movq	_RK8XX_ID_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	%r13d, (%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_info
	movl	(%r15), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_15
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_rk817_regmap_config@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	_rk817_irq_chip@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_rk817_pre_init_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_rk817s@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_rk808_syscore_ops@GOTPCREL(%rip), %rdi
	callq	_register_syscore_ops
	jmp	LBB0_20
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_27:
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_10:
	movq	_RK808_ID_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_28
LBB0_13:
	movq	_RK808_ID_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %r12d
LBB0_28:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_RK808_ID_MSB@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RK808_ID_LSB@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%r12d, %r12d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_16:
	movq	_rk818_regmap_config@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	_rk818_irq_chip@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_rk818_pre_init_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_rk818s@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_rk818_device_shutdown@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_rk808_regmap_config@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	_rk808_irq_chip@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_rk808_pre_init_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_rk808s@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_rk808_device_shutdown@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_20
LBB0_19:
	movq	_rk805_regmap_config@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	_rk805_irq_chip@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_rk805_pre_init_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_rk805s@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_rk805_device_shutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_rk805_device_shutdown_prepare@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_20:
	movq	%r14, 48(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	40(%r15), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%r15), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_22:
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_25
## %bb.23:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	32(%r15), %r8
	movq	%r15, %rbx
	addq	$4, %rbx
	movl	$-1, %ecx
	movq	%rbx, %r9
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_29
## %bb.24:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	jmp	LBB0_12
LBB0_25:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_29:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_33
## %bb.30:
	movl	%eax, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%ebx, %ebx
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%rbx), %edx
	movl	(%rax,%rbx), %esi
	movl	4(%rax,%rbx), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	addq	$12, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_31
LBB0_33:
	movq	_PLATFORM_DEVID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_36
## %bb.34:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_regmap_del_irq_chip
	jmp	LBB0_28
LBB0_35:
	movl	%eax, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_11
LBB0_36:
	leaq	L_.str.10(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_39
## %bb.37:
	movq	_pm_power_off@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_39
## %bb.38:
	movq	_rk808_i2c_client@GOTPCREL(%rip), %rdx
	movq	%r14, (%rdx)
	movq	16(%r15), %rdx
	movq	%rdx, (%rcx)
LBB0_39:
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_28
## %bb.40:
	movq	_pm_power_off_prepare@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_28
## %bb.41:
	movq	_rk808_i2c_client@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_43
## %bb.42:
	movq	%r14, (%rcx)
LBB0_43:
	movq	8(%r15), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_17
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rockchip,rk817"

L_.str.1:                               ## @.str.1
	.asciz	"rockchip,rk809"

	.comm	_RK817_ID_MSB,1,0               ## @RK817_ID_MSB
	.comm	_RK817_ID_LSB,1,0               ## @RK817_ID_LSB
	.comm	_RK808_ID_MSB,4,2               ## @RK808_ID_MSB
	.comm	_RK808_ID_LSB,4,2               ## @RK808_ID_LSB
L_.str.2:                               ## @.str.2
	.asciz	"failed to read the chip id at 0x%x\n"

	.comm	_RK8XX_ID_MSK,4,2               ## @RK8XX_ID_MSK
L_.str.3:                               ## @.str.3
	.asciz	"chip id: 0x%x\n"

	.comm	_rk805_regmap_config,4,2        ## @rk805_regmap_config
	.comm	_rk805_irq_chip,4,2             ## @rk805_irq_chip
	.comm	_rk805_pre_init_reg,8,3         ## @rk805_pre_init_reg
	.comm	_rk805s,8,3                     ## @rk805s
	.comm	_rk805_device_shutdown,8,3      ## @rk805_device_shutdown
	.comm	_rk805_device_shutdown_prepare,8,3 ## @rk805_device_shutdown_prepare
	.comm	_rk808_regmap_config,4,2        ## @rk808_regmap_config
	.comm	_rk808_irq_chip,4,2             ## @rk808_irq_chip
	.comm	_rk808_pre_init_reg,8,3         ## @rk808_pre_init_reg
	.comm	_rk808s,8,3                     ## @rk808s
	.comm	_rk808_device_shutdown,8,3      ## @rk808_device_shutdown
	.comm	_rk818_regmap_config,4,2        ## @rk818_regmap_config
	.comm	_rk818_irq_chip,4,2             ## @rk818_irq_chip
	.comm	_rk818_pre_init_reg,8,3         ## @rk818_pre_init_reg
	.comm	_rk818s,8,3                     ## @rk818s
	.comm	_rk818_device_shutdown,8,3      ## @rk818_device_shutdown
	.comm	_rk817_regmap_config,4,2        ## @rk817_regmap_config
	.comm	_rk817_irq_chip,4,2             ## @rk817_irq_chip
	.comm	_rk817_pre_init_reg,8,3         ## @rk817_pre_init_reg
	.comm	_rk817s,8,3                     ## @rk817s
	.comm	_rk808_syscore_ops,4,2          ## @rk808_syscore_ops
L_.str.4:                               ## @.str.4
	.asciz	"Unsupported RK8XX ID %lu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"regmap initialization failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"No interrupt support, no core IRQ\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.7:                               ## @.str.7
	.asciz	"Failed to add irq_chip %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"0x%x write err\n"

	.comm	_PLATFORM_DEVID_NONE,4,2        ## @PLATFORM_DEVID_NONE
L_.str.9:                               ## @.str.9
	.asciz	"failed to add MFD devices %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"rockchip,system-power-controller"

	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_rk808_i2c_client,8,3           ## @rk808_i2c_client
	.comm	_pm_power_off_prepare,8,3       ## @pm_power_off_prepare
	.no_dead_strip	_rk808_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk808_probe
_rk808_probe:                           ; @rk808_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	mov	x19, x0
	ldr	x22, [x19, #8]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbz	x0, LBB0_15
LBB0_3:
Lloh7:
	adrp	x8, _RK817_ID_MSB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RK817_ID_MSB@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh9:
	adrp	x9, _RK817_ID_LSB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RK817_ID_LSB@GOTPAGEOFF]
	ldrb	w23, [x9]
LBB0_4:
	and	w1, w8, #0xff
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x27, x0
	tbnz	w0, #31, LBB0_11
; %bb.5:
	and	w1, w23, #0xff
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_13
; %bb.6:
	orr	w8, w23, w27, lsl #8
Lloh11:
	adrp	x9, _RK8XX_ID_MSK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RK8XX_ID_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w2, w9, w8
	str	w2, [x21]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_16
; %bb.7:
Lloh16:
	adrp	x8, lJTI0_0@PAGE
Lloh17:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh18:
	adrp	x8, _rk817_regmap_config@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rk817_regmap_config@GOTPAGEOFF]
Lloh20:
	adrp	x9, _rk817_irq_chip@GOTPAGE
Lloh21:
	ldr	x9, [x9, _rk817_irq_chip@GOTPAGEOFF]
	stp	x9, x8, [x21, #32]
Lloh22:
	adrp	x8, _rk817_pre_init_reg@GOTPAGE
Lloh23:
	ldr	x8, [x8, _rk817_pre_init_reg@GOTPAGEOFF]
Lloh24:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x26, x0
Lloh25:
	adrp	x8, _rk817s@GOTPAGE
Lloh26:
	ldr	x8, [x8, _rk817s@GOTPAGEOFF]
Lloh27:
	ldr	x24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x25, x0
Lloh28:
	adrp	x0, _rk808_syscore_ops@GOTPAGE
Lloh29:
	ldr	x0, [x0, _rk808_syscore_ops@GOTPAGEOFF]
	bl	_register_syscore_ops
	b	LBB0_21
LBB0_9:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_14
LBB0_11:
Lloh32:
	adrp	x8, _RK808_ID_MSB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RK808_ID_MSB@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_13:
Lloh37:
	adrp	x8, _RK808_ID_LSB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RK808_ID_LSB@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x27, x23
LBB0_14:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh42:
	adrp	x8, _RK808_ID_MSB@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RK808_ID_MSB@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _RK808_ID_LSB@GOTPAGE
Lloh46:
	ldr	x9, [x9, _RK808_ID_LSB@GOTPAGEOFF]
Lloh47:
	ldr	w23, [x9]
	b	LBB0_4
LBB0_16:
	str	x8, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_27
LBB0_17:
Lloh50:
	adrp	x8, _rk818_regmap_config@GOTPAGE
Lloh51:
	ldr	x8, [x8, _rk818_regmap_config@GOTPAGEOFF]
Lloh52:
	adrp	x9, _rk818_irq_chip@GOTPAGE
Lloh53:
	ldr	x9, [x9, _rk818_irq_chip@GOTPAGEOFF]
	stp	x9, x8, [x21, #32]
Lloh54:
	adrp	x8, _rk818_pre_init_reg@GOTPAGE
Lloh55:
	ldr	x8, [x8, _rk818_pre_init_reg@GOTPAGEOFF]
Lloh56:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x26, x0
Lloh57:
	adrp	x8, _rk818s@GOTPAGE
Lloh58:
	ldr	x8, [x8, _rk818s@GOTPAGEOFF]
Lloh59:
	ldr	x24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x25, x0
Lloh60:
	adrp	x8, _rk818_device_shutdown@GOTPAGE
Lloh61:
	ldr	x8, [x8, _rk818_device_shutdown@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh62:
	adrp	x8, _rk808_regmap_config@GOTPAGE
Lloh63:
	ldr	x8, [x8, _rk808_regmap_config@GOTPAGEOFF]
Lloh64:
	adrp	x9, _rk808_irq_chip@GOTPAGE
Lloh65:
	ldr	x9, [x9, _rk808_irq_chip@GOTPAGEOFF]
	stp	x9, x8, [x21, #32]
Lloh66:
	adrp	x8, _rk808_pre_init_reg@GOTPAGE
Lloh67:
	ldr	x8, [x8, _rk808_pre_init_reg@GOTPAGEOFF]
Lloh68:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x26, x0
Lloh69:
	adrp	x8, _rk808s@GOTPAGE
Lloh70:
	ldr	x8, [x8, _rk808s@GOTPAGEOFF]
Lloh71:
	ldr	x24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x25, x0
Lloh72:
	adrp	x8, _rk808_device_shutdown@GOTPAGE
Lloh73:
	ldr	x8, [x8, _rk808_device_shutdown@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	str	x8, [x21, #16]
	b	LBB0_21
LBB0_20:
Lloh74:
	adrp	x8, _rk805_regmap_config@GOTPAGE
Lloh75:
	ldr	x8, [x8, _rk805_regmap_config@GOTPAGEOFF]
Lloh76:
	adrp	x9, _rk805_irq_chip@GOTPAGE
Lloh77:
	ldr	x9, [x9, _rk805_irq_chip@GOTPAGEOFF]
	stp	x9, x8, [x21, #32]
Lloh78:
	adrp	x8, _rk805_pre_init_reg@GOTPAGE
Lloh79:
	ldr	x8, [x8, _rk805_pre_init_reg@GOTPAGEOFF]
Lloh80:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x26, x0
Lloh81:
	adrp	x8, _rk805s@GOTPAGE
Lloh82:
	ldr	x8, [x8, _rk805s@GOTPAGEOFF]
Lloh83:
	ldr	x24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x25, x0
Lloh84:
	adrp	x8, _rk805_device_shutdown@GOTPAGE
Lloh85:
	ldr	x8, [x8, _rk805_device_shutdown@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
Lloh87:
	adrp	x9, _rk805_device_shutdown_prepare@GOTPAGE
Lloh88:
	ldr	x9, [x9, _rk805_device_shutdown_prepare@GOTPAGEOFF]
Lloh89:
	ldr	x9, [x9]
	stp	x9, x8, [x21, #8]
LBB0_21:
	str	x20, [x21, #48]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	ldr	x1, [x21, #40]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.22:
Lloh90:
	adrp	x1, l_.str.5@PAGE
Lloh91:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x21, #24]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_23:
	ldr	w1, [x20]
	cbz	w1, LBB0_26
; %bb.24:
	ldr	w0, [x21, #24]
Lloh92:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh94:
	ldr	w2, [x8]
	ldr	x4, [x21, #32]
	add	x28, x21, #4
	mov	w3, #-1
	mov	x5, x28
	bl	_regmap_add_irq_chip
	cbz	w0, LBB0_28
; %bb.25:
	mov	x27, x0
	str	x27, [sp]
Lloh95:
	adrp	x1, l_.str.7@PAGE
Lloh96:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_26:
Lloh97:
	adrp	x1, l_.str.6@PAGE
Lloh98:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_dev_err
Lloh99:
	adrp	x8, _EINVAL@GOTPAGE
Lloh100:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_28:
	cmp	w26, #1
	b.lt	LBB0_32
; %bb.29:
	mov	w26, w26
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #24]
	ldp	w3, w2, [x23, #4]
	ldr	w1, [x23]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x23, x23, #12
	subs	x26, x26, #1
	b.ne	LBB0_30
LBB0_32:
Lloh101:
	adrp	x8, _PLATFORM_DEVID_NONE@GOTPAGE
Lloh102:
	ldr	x8, [x8, _PLATFORM_DEVID_NONE@GOTPAGEOFF]
Lloh103:
	ldr	w23, [x8]
	ldr	w0, [x28]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	cbz	w0, LBB0_35
; %bb.33:
	mov	x27, x0
	str	x27, [sp]
Lloh104:
	adrp	x1, l_.str.9@PAGE
Lloh105:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	ldr	w1, [x28]
	bl	_regmap_del_irq_chip
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	b	LBB0_14
LBB0_34:
	mov	x27, x0
	ldr	w8, [x23]
	str	x8, [sp]
Lloh106:
	adrp	x1, l_.str.8@PAGE
Lloh107:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_35:
Lloh108:
	adrp	x1, l_.str.10@PAGE
Lloh109:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
Lloh110:
	adrp	x8, _rk808_i2c_client@GOTPAGE
Lloh111:
	ldr	x8, [x8, _rk808_i2c_client@GOTPAGEOFF]
	cbz	w0, LBB0_38
; %bb.36:
Lloh112:
	adrp	x9, _pm_power_off@GOTPAGE
Lloh113:
	ldr	x9, [x9, _pm_power_off@GOTPAGEOFF]
	ldr	x10, [x9]
	cbnz	x10, LBB0_38
; %bb.37:
	str	x20, [x8]
	ldr	x10, [x21, #16]
	str	x10, [x9]
LBB0_38:
	mov	w27, #0
	cbz	w0, LBB0_14
; %bb.39:
Lloh114:
	adrp	x9, _pm_power_off_prepare@GOTPAGE
Lloh115:
	ldr	x9, [x9, _pm_power_off_prepare@GOTPAGEOFF]
	ldr	x10, [x9]
	cbnz	x10, LBB0_14
; %bb.40:
	ldr	x10, [x8]
	cbnz	x10, LBB0_42
; %bb.41:
	str	x20, [x8]
LBB0_42:
	mov	w27, #0
	ldr	x8, [x21, #8]
	str	x8, [x9]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh114, Lloh115
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rockchip,rk817"

l_.str.1:                               ; @.str.1
	.asciz	"rockchip,rk809"

	.comm	_RK817_ID_MSB,1,0               ; @RK817_ID_MSB
	.comm	_RK817_ID_LSB,1,0               ; @RK817_ID_LSB
	.comm	_RK808_ID_MSB,4,2               ; @RK808_ID_MSB
	.comm	_RK808_ID_LSB,4,2               ; @RK808_ID_LSB
l_.str.2:                               ; @.str.2
	.asciz	"failed to read the chip id at 0x%x\n"

	.comm	_RK8XX_ID_MSK,4,2               ; @RK8XX_ID_MSK
l_.str.3:                               ; @.str.3
	.asciz	"chip id: 0x%x\n"

	.comm	_rk805_regmap_config,4,2        ; @rk805_regmap_config
	.comm	_rk805_irq_chip,4,2             ; @rk805_irq_chip
	.comm	_rk805_pre_init_reg,8,3         ; @rk805_pre_init_reg
	.comm	_rk805s,8,3                     ; @rk805s
	.comm	_rk805_device_shutdown,8,3      ; @rk805_device_shutdown
	.comm	_rk805_device_shutdown_prepare,8,3 ; @rk805_device_shutdown_prepare
	.comm	_rk808_regmap_config,4,2        ; @rk808_regmap_config
	.comm	_rk808_irq_chip,4,2             ; @rk808_irq_chip
	.comm	_rk808_pre_init_reg,8,3         ; @rk808_pre_init_reg
	.comm	_rk808s,8,3                     ; @rk808s
	.comm	_rk808_device_shutdown,8,3      ; @rk808_device_shutdown
	.comm	_rk818_regmap_config,4,2        ; @rk818_regmap_config
	.comm	_rk818_irq_chip,4,2             ; @rk818_irq_chip
	.comm	_rk818_pre_init_reg,8,3         ; @rk818_pre_init_reg
	.comm	_rk818s,8,3                     ; @rk818s
	.comm	_rk818_device_shutdown,8,3      ; @rk818_device_shutdown
	.comm	_rk817_regmap_config,4,2        ; @rk817_regmap_config
	.comm	_rk817_irq_chip,4,2             ; @rk817_irq_chip
	.comm	_rk817_pre_init_reg,8,3         ; @rk817_pre_init_reg
	.comm	_rk817s,8,3                     ; @rk817s
	.comm	_rk808_syscore_ops,4,2          ; @rk808_syscore_ops
l_.str.4:                               ; @.str.4
	.asciz	"Unsupported RK8XX ID %lu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"regmap initialization failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"No interrupt support, no core IRQ\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.7:                               ; @.str.7
	.asciz	"Failed to add irq_chip %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"0x%x write err\n"

	.comm	_PLATFORM_DEVID_NONE,4,2        ; @PLATFORM_DEVID_NONE
l_.str.9:                               ; @.str.9
	.asciz	"failed to add MFD devices %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"rockchip,system-power-controller"

	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_rk808_i2c_client,8,3           ; @rk808_i2c_client
	.comm	_pm_power_off_prepare,8,3       ; @pm_power_off_prepare
	.no_dead_strip	_rk808_probe
.subsections_via_symbols
