	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_madera_dev_init                ## -- Begin function madera_dev_init
	.p2align	4, 0x90
_madera_dev_init:                       ## @madera_dev_init
	.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	$40, %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	24(%rdi), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	leaq	52(%r12), %rdi
	callq	_BLOCKING_INIT_NOTIFIER_HEAD
	leaq	48(%r12), %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	callq	_madera_set_micbias_info
	movq	24(%r12), %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	40(%r12), %rbx
	movq	24(%r12), %rdi
	callq	_dev_get_platdata
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_2:
	movq	%r12, %rdi
	callq	_madera_get_reset_gpio
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movl	32(%r12), %edi
	movl	$1, %esi
	callq	_regcache_cache_only
	movl	44(%r12), %edi
	movl	$1, %esi
	callq	_regcache_cache_only
	movq	_madera_core_supplies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %ecx
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	movl	4(%r12), %edx
	leal	-128(%rdx), %ecx
	cmpl	$13, %ecx
	ja	LBB0_21
## %bb.7:
	movl	$13402, %esi                    ## imm = 0x345A
	btl	%ecx, %esi
	jae	LBB0_16
LBB0_8:
	movq	16(%r12), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	24(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_regulator_get
	movl	%eax, 12(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:
	movl	12(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	%r14, %rdi
	callq	_mfd_remove_devices
LBB0_15:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$257, %eax                      ## imm = 0x101
	btl	%ecx, %eax
	jae	LBB0_21
## %bb.17:
	movq	24(%r12), %r15
	movq	_PLATFORM_DEVID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_madera_ldo1_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_19:
	movl	(%r12), %edi
	movq	16(%r12), %rsi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_56
LBB0_21:
	movq	24(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_22:
	movl	(%r12), %eax
	jmp	LBB0_8
LBB0_23:
	movl	12(%r12), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_55
LBB0_25:
	movq	%r12, %rdi
	callq	_madera_disable_hard_reset
	movl	32(%r12), %edi
	xorl	%esi, %esi
	callq	_regcache_cache_only
	movl	44(%r12), %edi
	xorl	%esi, %esi
	callq	_regcache_cache_only
	movl	32(%r12), %edi
	movq	_MADERA_SOFTWARE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_29
## %bb.26:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
LBB0_27:
	movq	%r14, %rdi
LBB0_28:
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_54
LBB0_29:
	movl	-44(%rbp), %edx
	leal	-130(%rdx), %eax
	cmpl	$9, %eax
	ja	LBB0_35
## %bb.30:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_31:
	movq	_CONFIG_MFD_CS47L92@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_52
## %bb.32:
	movl	$-129, %eax
	addl	4(%r12), %eax
	cmpl	$12, %eax
	ja	LBB0_52
## %bb.33:
	movl	$4101, %ecx                     ## imm = 0x1005
	btl	%eax, %ecx
	jae	LBB0_52
## %bb.34:
	movq	_cs47l92_patch@GOTPCREL(%rip), %r15
	movq	_cs47l92_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_35:
	movq	24(%r12), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%r15d, %r15d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_36:
	movq	_CONFIG_MFD_CS47L90@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_52
## %bb.37:
	movl	4(%r12), %eax
	orl	$2, %eax
	cmpl	$134, %eax
	jne	LBB0_52
## %bb.38:
	movq	_cs47l90_patch@GOTPCREL(%rip), %r15
	movq	_cs47l90_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_39:
	movq	_CONFIG_MFD_CS47L85@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_52
## %bb.40:
	movl	4(%r12), %eax
	orl	$8, %eax
	cmpl	$136, %eax
	jne	LBB0_52
## %bb.41:
	movq	_cs47l85_patch@GOTPCREL(%rip), %r15
	movq	_cs47l85_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_42:
	movq	_CONFIG_MFD_CS47L35@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_52
## %bb.43:
	cmpl	$138, 4(%r12)
	jne	LBB0_52
## %bb.44:
	movq	_cs47l35_patch@GOTPCREL(%rip), %r15
	movq	_cs47l35_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_45:
	movq	_CONFIG_MFD_CS47L15@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_52
## %bb.46:
	cmpl	$140, 4(%r12)
	jne	LBB0_52
## %bb.47:
	movq	_cs47l15_patch@GOTPCREL(%rip), %r15
	movq	_cs47l15_devs@GOTPCREL(%rip), %rax
LBB0_48:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_52
## %bb.49:
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 40(%r12)
	je	LBB0_57
LBB0_50:
	movq	%r12, %rdi
	callq	_madera_wait_for_boot
	testl	%eax, %eax
	je	LBB0_58
## %bb.51:
	movl	%eax, %r15d
	movq	24(%r12), %rdi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_28
LBB0_52:
	movq	24(%r12), %rdi
	movl	-44(%rbp), %edx
	movl	36(%r12), %ecx
	leaq	L_.str.9(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_53:
	subl	(%rax), %r15d
LBB0_54:
	movq	%r12, %rdi
	callq	_madera_enable_hard_reset
	movl	12(%r12), %edi
	callq	_regulator_disable
LBB0_55:
	movl	(%r12), %edi
	movq	16(%r12), %rsi
	callq	_regulator_bulk_disable
LBB0_56:
	movl	12(%r12), %edi
	callq	_regulator_put
	jmp	LBB0_14
LBB0_57:
	movq	%r12, %rdi
	callq	_madera_soft_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_54
	jmp	LBB0_50
LBB0_58:
	movl	32(%r12), %edi
	movq	_MADERA_HARDWARE_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r12), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_60
## %bb.59:
	movl	%eax, %r15d
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_27
LBB0_60:
	movq	_MADERA_HW_REVISION_MASK@GOTPCREL(%rip), %rax
	movl	8(%r12), %ecx
	movl	36(%r12), %edx
	andl	(%rax), %ecx
	movl	%ecx, 8(%r12)
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r12, %rdi
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_62
## %bb.61:
	movl	%eax, %r15d
	movq	24(%r12), %rdi
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_28
LBB0_62:
	movl	32(%r12), %edi
	movq	_MADERA_CLOCK_32K_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MADERA_CLK_32K_ENA_MASK@GOTPCREL(%rip), %rax
	movq	_MADERA_CLK_32K_SRC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MADERA_CLK_32K_ENA@GOTPCREL(%rip), %rax
	movq	_MADERA_32KZ_MCLK2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_regmap_update_bits
	movq	24(%r12), %rdi
	testl	%eax, %eax
	je	LBB0_64
## %bb.63:
	movl	%eax, %r15d
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_28
LBB0_64:
	callq	_pm_runtime_set_active
	movq	24(%r12), %rdi
	callq	_pm_runtime_enable
	movq	24(%r12), %rdi
	movl	$100, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	24(%r12), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	24(%r12), %rdi
	movq	_PLATFORM_DEVID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_15
## %bb.65:
	movl	%eax, %ebx
	movq	24(%r12), %rdi
	leaq	L_.str.15(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r12), %rdi
	callq	_pm_runtime_disable
	movl	%ebx, %r15d
	jmp	LBB0_54
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_35
	.long	L0_0_set_35
	.long	L0_0_set_36
	.long	L0_0_set_35
	.long	L0_0_set_39
	.long	L0_0_set_35
	.long	L0_0_set_42
	.long	L0_0_set_35
	.long	L0_0_set_45
	.end_data_region
                                        ## -- End function
	.comm	_madera_core_supplies,8,3       ## @madera_core_supplies
	.comm	_PLATFORM_DEVID_NONE,4,2        ## @PLATFORM_DEVID_NONE
	.comm	_madera_ldo1_devs,8,3           ## @madera_ldo1_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add LDO1 child: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown device type %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request core supplies: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"DCVDD"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to request DCVDD: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to enable core supplies: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to enable DCVDD: %d\n"

	.comm	_MADERA_SOFTWARE_RESET,4,2      ## @MADERA_SOFTWARE_RESET
L_.str.7:                               ## @.str.7
	.asciz	"Failed to read ID register: %d\n"

	.comm	_CONFIG_MFD_CS47L15,4,2         ## @CONFIG_MFD_CS47L15
	.comm	_cs47l15_devs,8,3               ## @cs47l15_devs
	.comm	_CONFIG_MFD_CS47L35,4,2         ## @CONFIG_MFD_CS47L35
	.comm	_cs47l35_devs,8,3               ## @cs47l35_devs
	.comm	_CONFIG_MFD_CS47L85,4,2         ## @CONFIG_MFD_CS47L85
	.comm	_cs47l85_devs,8,3               ## @cs47l85_devs
	.comm	_CONFIG_MFD_CS47L90,4,2         ## @CONFIG_MFD_CS47L90
	.comm	_cs47l90_devs,8,3               ## @cs47l90_devs
	.comm	_CONFIG_MFD_CS47L92,4,2         ## @CONFIG_MFD_CS47L92
	.comm	_cs47l92_devs,8,3               ## @cs47l92_devs
L_.str.8:                               ## @.str.8
	.asciz	"Unknown device ID: %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.9:                               ## @.str.9
	.asciz	"Device ID 0x%x not a %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"Device failed initial boot: %d\n"

	.comm	_MADERA_HARDWARE_REVISION,4,2   ## @MADERA_HARDWARE_REVISION
L_.str.11:                              ## @.str.11
	.asciz	"Failed to read revision register: %d\n"

	.comm	_MADERA_HW_REVISION_MASK,4,2    ## @MADERA_HW_REVISION_MASK
L_.str.12:                              ## @.str.12
	.asciz	"%s silicon revision %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to apply patch %d\n"

	.comm	_MADERA_CLOCK_32K_1,4,2         ## @MADERA_CLOCK_32K_1
	.comm	_MADERA_CLK_32K_ENA_MASK,4,2    ## @MADERA_CLK_32K_ENA_MASK
	.comm	_MADERA_CLK_32K_SRC_MASK,4,2    ## @MADERA_CLK_32K_SRC_MASK
	.comm	_MADERA_CLK_32K_ENA,4,2         ## @MADERA_CLK_32K_ENA
	.comm	_MADERA_32KZ_MCLK2,4,2          ## @MADERA_32KZ_MCLK2
L_.str.14:                              ## @.str.14
	.asciz	"Failed to init 32k clock: %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"Failed to add subdevices: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_madera_dev_init                ; -- Begin function madera_dev_init
	.p2align	2
_madera_dev_init:                       ; @madera_dev_init
	.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
	ldr	x19, [x0, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	add	x0, x20, #52
	bl	_BLOCKING_INIT_NOTIFIER_HEAD
	add	x0, x20, #48
	bl	_mutex_init
	mov	x0, x20
	bl	_madera_set_micbias_info
	ldr	x0, [x20, #24]
	bl	_dev_get_platdata
	cbz	x0, LBB0_2
; %bb.1:
	add	x21, x20, #40
	ldr	x0, [x20, #24]
	bl	_dev_get_platdata
	mov	x1, x0
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
LBB0_2:
	mov	x0, x20
	bl	_madera_get_reset_gpio
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	w0, [x20, #32]
	mov	w1, #1
	bl	_regcache_cache_only
	ldr	w0, [x20, #44]
	mov	w1, #1
	bl	_regcache_cache_only
Lloh0:
	adrp	x21, _madera_core_supplies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _madera_core_supplies@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x0, [x21]
	lsl	x9, x22, #2
	ldr	w10, [x0, x9]
	str	w10, [x8, x9]
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
LBB0_6:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	ldr	w2, [x20, #4]
	sub	w8, w2, #128
	cmp	w8, #13
	b.hi	LBB0_20
; %bb.7:
	mov	x1, x0
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #13402
	tst	w8, w9
	b.eq	LBB0_15
LBB0_8:
	ldr	x2, [x20, #16]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	x0, [x20, #24]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_regulator_get
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.11:
	ldr	w0, [x20, #12]
	bl	_PTR_ERR
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_13:
	mov	x0, x19
	bl	_mfd_remove_devices
LBB0_14:
	mov	x0, x21
	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_15:
	mov	w9, #257
	tst	w8, w9
	b.eq	LBB0_20
; %bb.16:
	ldr	x21, [x20, #24]
Lloh8:
	adrp	x8, _PLATFORM_DEVID_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLATFORM_DEVID_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _madera_ldo1_devs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _madera_ldo1_devs@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	cbz	w0, LBB0_21
; %bb.17:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_14
LBB0_18:
	ldr	w0, [x20]
	ldr	x1, [x20, #16]
	bl	_regulator_bulk_enable
	cbz	w0, LBB0_22
; %bb.19:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_55
LBB0_20:
	ldr	x0, [x20, #24]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_21:
	ldr	w1, [x20]
	b	LBB0_8
LBB0_22:
	ldr	w0, [x20, #12]
	bl	_regulator_enable
	cbz	w0, LBB0_24
; %bb.23:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_54
LBB0_24:
	mov	x0, x20
	bl	_madera_disable_hard_reset
	ldr	w0, [x20, #32]
	mov	w1, #0
	bl	_regcache_cache_only
	ldr	w0, [x20, #44]
	mov	w1, #0
	bl	_regcache_cache_only
	ldr	w0, [x20, #32]
Lloh25:
	adrp	x8, _MADERA_SOFTWARE_RESET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MADERA_SOFTWARE_RESET@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_28
; %bb.25:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_26:
	mov	x0, x19
LBB0_27:
	mov	x2, x21
	bl	_dev_err
	b	LBB0_53
LBB0_28:
	ldr	w2, [sp, #12]
	sub	w8, w2, #130
	cmp	w8, #9
	b.hi	LBB0_34
; %bb.29:
Lloh30:
	adrp	x9, lJTI0_0@PAGE
Lloh31:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_30
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_30:
Lloh32:
	adrp	x8, _CONFIG_MFD_CS47L92@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CONFIG_MFD_CS47L92@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_51
; %bb.31:
	ldr	w8, [x20, #4]
	sub	w8, w8, #129
	cmp	w8, #12
	b.hi	LBB0_51
; %bb.32:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #4101
	tst	w8, w9
	b.eq	LBB0_51
; %bb.33:
Lloh35:
	adrp	x24, _cs47l92_patch@GOTPAGE
Lloh36:
	ldr	x24, [x24, _cs47l92_patch@GOTPAGEOFF]
Lloh37:
	adrp	x8, _cs47l92_devs@GOTPAGE
Lloh38:
	ldr	x8, [x8, _cs47l92_devs@GOTPAGEOFF]
	b	LBB0_47
LBB0_34:
	ldr	x0, [x20, #24]
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_52
LBB0_35:
Lloh43:
	adrp	x8, _CONFIG_MFD_CS47L90@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CONFIG_MFD_CS47L90@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_51
; %bb.36:
	ldr	w8, [x20, #4]
	orr	w8, w8, #0x2
	cmp	w8, #134
	b.ne	LBB0_51
; %bb.37:
Lloh46:
	adrp	x24, _cs47l90_patch@GOTPAGE
Lloh47:
	ldr	x24, [x24, _cs47l90_patch@GOTPAGEOFF]
Lloh48:
	adrp	x8, _cs47l90_devs@GOTPAGE
Lloh49:
	ldr	x8, [x8, _cs47l90_devs@GOTPAGEOFF]
	b	LBB0_47
LBB0_38:
Lloh50:
	adrp	x8, _CONFIG_MFD_CS47L85@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CONFIG_MFD_CS47L85@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_51
; %bb.39:
	ldr	w8, [x20, #4]
	orr	w8, w8, #0x8
	cmp	w8, #136
	b.ne	LBB0_51
; %bb.40:
Lloh53:
	adrp	x24, _cs47l85_patch@GOTPAGE
Lloh54:
	ldr	x24, [x24, _cs47l85_patch@GOTPAGEOFF]
Lloh55:
	adrp	x8, _cs47l85_devs@GOTPAGE
Lloh56:
	ldr	x8, [x8, _cs47l85_devs@GOTPAGEOFF]
	b	LBB0_47
LBB0_41:
Lloh57:
	adrp	x8, _CONFIG_MFD_CS47L35@GOTPAGE
Lloh58:
	ldr	x8, [x8, _CONFIG_MFD_CS47L35@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_51
; %bb.42:
	ldr	w8, [x20, #4]
	cmp	w8, #138
	b.ne	LBB0_51
; %bb.43:
Lloh60:
	adrp	x24, _cs47l35_patch@GOTPAGE
Lloh61:
	ldr	x24, [x24, _cs47l35_patch@GOTPAGEOFF]
Lloh62:
	adrp	x8, _cs47l35_devs@GOTPAGE
Lloh63:
	ldr	x8, [x8, _cs47l35_devs@GOTPAGEOFF]
	b	LBB0_47
LBB0_44:
Lloh64:
	adrp	x8, _CONFIG_MFD_CS47L15@GOTPAGE
Lloh65:
	ldr	x8, [x8, _CONFIG_MFD_CS47L15@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_51
; %bb.45:
	ldr	w8, [x20, #4]
	cmp	w8, #140
	b.ne	LBB0_51
; %bb.46:
Lloh67:
	adrp	x24, _cs47l15_patch@GOTPAGE
Lloh68:
	ldr	x24, [x24, _cs47l15_patch@GOTPAGEOFF]
Lloh69:
	adrp	x8, _cs47l15_devs@GOTPAGE
Lloh70:
	ldr	x8, [x8, _cs47l15_devs@GOTPAGEOFF]
LBB0_47:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_51
; %bb.48:
	mov	x23, x0
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_56
LBB0_49:
	mov	x0, x20
	bl	_madera_wait_for_boot
	cbz	w0, LBB0_57
; %bb.50:
	mov	x21, x0
	ldr	x0, [x20, #24]
Lloh71:
	adrp	x1, l_.str.10@PAGE
Lloh72:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_27
LBB0_51:
	ldr	x0, [x20, #24]
	ldr	w2, [sp, #12]
	ldr	w8, [x20, #36]
	str	x8, [sp]
Lloh73:
	adrp	x1, l_.str.9@PAGE
Lloh74:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
Lloh75:
	adrp	x8, _ENODEV@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_52:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_53:
	mov	x0, x20
	bl	_madera_enable_hard_reset
	ldr	w0, [x20, #12]
	bl	_regulator_disable
LBB0_54:
	ldr	w0, [x20]
	ldr	x1, [x20, #16]
	bl	_regulator_bulk_disable
LBB0_55:
	ldr	w0, [x20, #12]
	bl	_regulator_put
	b	LBB0_13
LBB0_56:
	mov	x0, x20
	bl	_madera_soft_reset
	mov	x21, x0
	cbnz	w0, LBB0_53
	b	LBB0_49
LBB0_57:
	ldr	w0, [x20, #32]
Lloh77:
	adrp	x8, _MADERA_HARDWARE_REVISION@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MADERA_HARDWARE_REVISION@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	add	x2, x20, #8
	bl	_regmap_read
	cbz	w0, LBB0_59
; %bb.58:
	mov	x21, x0
Lloh80:
	adrp	x1, l_.str.11@PAGE
Lloh81:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_26
LBB0_59:
Lloh82:
	adrp	x8, _MADERA_HW_REVISION_MASK@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MADERA_HW_REVISION_MASK@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	and	w3, w9, w8
	str	w3, [x20, #8]
	ldr	w2, [x20, #36]
Lloh85:
	adrp	x1, l_.str.12@PAGE
Lloh86:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	blr	x24
	cbz	w0, LBB0_61
; %bb.60:
	mov	x21, x0
	ldr	x0, [x20, #24]
Lloh87:
	adrp	x1, l_.str.13@PAGE
Lloh88:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_27
LBB0_61:
	ldr	w0, [x20, #32]
Lloh89:
	adrp	x8, _MADERA_CLOCK_32K_1@GOTPAGE
Lloh90:
	ldr	x8, [x8, _MADERA_CLOCK_32K_1@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
Lloh92:
	adrp	x8, _MADERA_CLK_32K_ENA_MASK@GOTPAGE
Lloh93:
	ldr	x8, [x8, _MADERA_CLK_32K_ENA_MASK@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
Lloh95:
	adrp	x9, _MADERA_CLK_32K_SRC_MASK@GOTPAGE
Lloh96:
	ldr	x9, [x9, _MADERA_CLK_32K_SRC_MASK@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
Lloh98:
	adrp	x10, _MADERA_CLK_32K_ENA@GOTPAGE
Lloh99:
	ldr	x10, [x10, _MADERA_CLK_32K_ENA@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh100:
	ldr	w8, [x10]
Lloh101:
	adrp	x9, _MADERA_32KZ_MCLK2@GOTPAGE
Lloh102:
	ldr	x9, [x9, _MADERA_32KZ_MCLK2@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_regmap_update_bits
	mov	x21, x0
	ldr	x0, [x20, #24]
	cbz	w21, LBB0_63
; %bb.62:
Lloh104:
	adrp	x1, l_.str.14@PAGE
Lloh105:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_27
LBB0_63:
	bl	_pm_runtime_set_active
	ldr	x0, [x20, #24]
	bl	_pm_runtime_enable
	ldr	x0, [x20, #24]
	mov	w1, #100
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x20, #24]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x20, #24]
Lloh106:
	adrp	x8, _PLATFORM_DEVID_NONE@GOTPAGE
Lloh107:
	ldr	x8, [x8, _PLATFORM_DEVID_NONE@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x8]
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.64:
	ldr	x0, [x20, #24]
Lloh109:
	adrp	x1, l_.str.15@PAGE
Lloh110:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	ldr	x0, [x20, #24]
	bl	_pm_runtime_disable
	b	LBB0_53
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpAdd	Lloh109, Lloh110
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_30-LBB0_30)>>2
	.byte	(LBB0_34-LBB0_30)>>2
	.byte	(LBB0_34-LBB0_30)>>2
	.byte	(LBB0_35-LBB0_30)>>2
	.byte	(LBB0_34-LBB0_30)>>2
	.byte	(LBB0_38-LBB0_30)>>2
	.byte	(LBB0_34-LBB0_30)>>2
	.byte	(LBB0_41-LBB0_30)>>2
	.byte	(LBB0_34-LBB0_30)>>2
	.byte	(LBB0_44-LBB0_30)>>2
                                        ; -- End function
	.comm	_madera_core_supplies,8,3       ; @madera_core_supplies
	.comm	_PLATFORM_DEVID_NONE,4,2        ; @PLATFORM_DEVID_NONE
	.comm	_madera_ldo1_devs,8,3           ; @madera_ldo1_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add LDO1 child: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown device type %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request core supplies: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"DCVDD"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to request DCVDD: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to enable core supplies: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to enable DCVDD: %d\n"

	.comm	_MADERA_SOFTWARE_RESET,4,2      ; @MADERA_SOFTWARE_RESET
l_.str.7:                               ; @.str.7
	.asciz	"Failed to read ID register: %d\n"

	.comm	_CONFIG_MFD_CS47L15,4,2         ; @CONFIG_MFD_CS47L15
	.comm	_cs47l15_devs,8,3               ; @cs47l15_devs
	.comm	_CONFIG_MFD_CS47L35,4,2         ; @CONFIG_MFD_CS47L35
	.comm	_cs47l35_devs,8,3               ; @cs47l35_devs
	.comm	_CONFIG_MFD_CS47L85,4,2         ; @CONFIG_MFD_CS47L85
	.comm	_cs47l85_devs,8,3               ; @cs47l85_devs
	.comm	_CONFIG_MFD_CS47L90,4,2         ; @CONFIG_MFD_CS47L90
	.comm	_cs47l90_devs,8,3               ; @cs47l90_devs
	.comm	_CONFIG_MFD_CS47L92,4,2         ; @CONFIG_MFD_CS47L92
	.comm	_cs47l92_devs,8,3               ; @cs47l92_devs
l_.str.8:                               ; @.str.8
	.asciz	"Unknown device ID: %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.9:                               ; @.str.9
	.asciz	"Device ID 0x%x not a %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"Device failed initial boot: %d\n"

	.comm	_MADERA_HARDWARE_REVISION,4,2   ; @MADERA_HARDWARE_REVISION
l_.str.11:                              ; @.str.11
	.asciz	"Failed to read revision register: %d\n"

	.comm	_MADERA_HW_REVISION_MASK,4,2    ; @MADERA_HW_REVISION_MASK
l_.str.12:                              ; @.str.12
	.asciz	"%s silicon revision %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to apply patch %d\n"

	.comm	_MADERA_CLOCK_32K_1,4,2         ; @MADERA_CLOCK_32K_1
	.comm	_MADERA_CLK_32K_ENA_MASK,4,2    ; @MADERA_CLK_32K_ENA_MASK
	.comm	_MADERA_CLK_32K_SRC_MASK,4,2    ; @MADERA_CLK_32K_SRC_MASK
	.comm	_MADERA_CLK_32K_ENA,4,2         ; @MADERA_CLK_32K_ENA
	.comm	_MADERA_32KZ_MCLK2,4,2          ; @MADERA_32KZ_MCLK2
l_.str.14:                              ; @.str.14
	.asciz	"Failed to init 32k clock: %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"Failed to add subdevices: %d\n"

.subsections_via_symbols
