	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_device_init
_wm831x_device_init:                    ## @wm831x_device_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	8(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	addq	$24, %rdi
	callq	_mutex_init
	leaq	20(%r15), %rdi
	callq	_mutex_init
	leaq	16(%r15), %rdi
	callq	_mutex_init
	movq	8(%r15), %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	_WM831X_PARENT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm831x_reg_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	cmpl	$25092, %r14d                   ## imm = 0x6204
	jne	LBB0_4
## %bb.6:
	movq	_WM831X_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm831x_reg_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_WM831X_PARENT_REV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	movq	_WM831X_PARENT_REV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %ebx
	movq	_WM831X_RESET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm831x_reg_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	cmpl	$33552, %r14d                   ## imm = 0x8310
	jg	LBB0_16
## %bb.11:
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.12:
	cmpl	$33552, %r14d                   ## imm = 0x8310
	jne	LBB0_56
## %bb.13:
	movl	$130, %r14d
	testl	%ebx, %ebx
	jne	LBB0_25
## %bb.14:
	movq	(%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_1:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
	jmp	LBB0_53
LBB0_7:
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
	cmpl	$33553, %r14d                   ## imm = 0x8311
	je	LBB0_20
## %bb.17:
	cmpl	$33554, %r14d                   ## imm = 0x8312
	jne	LBB0_56
## %bb.18:
	movl	$128, %r14d
	testl	%ebx, %ebx
	jne	LBB0_25
## %bb.19:
	movq	(%r13), %rdi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_15
LBB0_22:
	testl	%ebx, %ebx
	jne	LBB0_24
## %bb.23:
	movq	(%r13), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edx
	movl	$65, %ecx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_24:
	movl	%r12d, %r14d
	jmp	LBB0_25
LBB0_20:
	movl	$129, %r14d
	testl	%ebx, %ebx
	jne	LBB0_25
## %bb.21:
	movq	(%r13), %rdi
	leaq	L_.str.5(%rip), %rsi
LBB0_15:
	movl	$65, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_25:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	cmpq	%r12, %rax
	je	LBB0_27
## %bb.26:
	movq	(%r13), %rdi
	leaq	L_.str.9(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_warn
LBB0_27:
	movq	_WM831X_SECURITY_KEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_wm831x_reg_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_28
## %bb.29:
	je	LBB0_31
## %bb.30:
	movq	8(%r15), %rdi
	leaq	L_.str.11(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wm831x_reg_write
LBB0_31:
	movl	$1, (%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.32:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	%r15, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movl	%eax, %r14d
	movq	(%r13), %rdi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_2
LBB0_35:
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_wm831x_irq_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_53
## %bb.36:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	$128, %eax
	je	LBB0_43
## %bb.37:
	cmpl	$129, %eax
	je	LBB0_42
## %bb.38:
	cmpl	$130, %eax
	jne	LBB0_44
## %bb.39:
	movq	(%r13), %r14
	movq	_wm8310_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_28:
	movq	(%r13), %rdi
	leaq	L_.str.10(%rip), %rsi
LBB0_2:
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_53:
	movq	8(%r15), %rdi
	callq	_mfd_remove_devices
	movq	%r15, %rdi
	callq	_kfree
LBB0_54:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	movq	(%r13), %rdi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_5
LBB0_43:
	movq	(%r13), %r14
	movq	_wm8312_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_42:
	movq	(%r13), %r14
	movq	_wm8311_devs@GOTPCREL(%rip), %rax
LBB0_40:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_45
## %bb.41:
	movq	(%r13), %rdi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_52
LBB0_44:
	xorl	%eax, %eax
	callq	_BUG
LBB0_45:
	testq	%rbx, %rbx
	je	LBB0_55
## %bb.46:
	cmpq	$0, 16(%rbx)
	je	LBB0_49
## %bb.47:
	movq	(%r13), %r14
	movq	_backlight_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_49
## %bb.48:
	movq	(%r13), %rdi
	leaq	L_.str.14(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_49:
	movq	%r15, %rdi
	callq	_wm831x_otp_init
	movq	8(%rbx), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_54
## %bb.50:
	movq	%r15, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_54
## %bb.51:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	leaq	L_.str.15(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r14d
LBB0_52:
	movq	%r15, %rdi
	callq	_wm831x_irq_exit
	jmp	LBB0_53
LBB0_55:
	movq	%r15, %rdi
	callq	_wm831x_otp_init
	xorl	%r14d, %r14d
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_PARENT_ID,4,2           ## @WM831X_PARENT_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read parent ID: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device is not a WM831x: ID %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM831X_REVISION,4,2            ## @WM831X_REVISION
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read revision: %d\n"

	.comm	_WM831X_PARENT_REV_MASK,4,2     ## @WM831X_PARENT_REV_MASK
	.comm	_WM831X_PARENT_REV_SHIFT,4,2    ## @WM831X_PARENT_REV_SHIFT
	.comm	_WM831X_RESET_ID,4,2            ## @WM831X_RESET_ID
L_.str.3:                               ## @.str.3
	.asciz	"Failed to read device ID: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"WM8310 revision %c\n"

L_.str.5:                               ## @.str.5
	.asciz	"WM8311 revision %c\n"

L_.str.6:                               ## @.str.6
	.asciz	"WM8312 revision %c\n"

L_.str.7:                               ## @.str.7
	.asciz	"WM831%d ES revision %c\n"

L_.str.8:                               ## @.str.8
	.asciz	"Unknown WM831x device %04x\n"

L_.str.9:                               ## @.str.9
	.asciz	"Device was registered as a WM831%lu\n"

	.comm	_WM831X_SECURITY_KEY,4,2        ## @WM831X_SECURITY_KEY
L_.str.10:                              ## @.str.10
	.asciz	"Failed to read security key: %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"Security key had non-zero value %x\n"

L_.str.12:                              ## @.str.12
	.asciz	"pre_init() failed: %d\n"

	.comm	_wm8310_devs,4,2                ## @wm8310_devs
	.comm	_wm8311_devs,4,2                ## @wm8311_devs
	.comm	_wm8312_devs,4,2                ## @wm8312_devs
L_.str.13:                              ## @.str.13
	.asciz	"Failed to add children\n"

	.comm	_backlight_devs,4,2             ## @backlight_devs
L_.str.14:                              ## @.str.14
	.asciz	"Failed to add backlight: %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"post_init() failed: %d\n"

	.no_dead_strip	_wm831x_device_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_device_init
_wm831x_device_init:                    ; @wm831x_device_init
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	x24, x0
	ldr	x8, [x24, #8]!
	ldr	x25, [x8]
	add	x0, x0, #24
	bl	_mutex_init
	add	x0, x19, #20
	bl	_mutex_init
	add	x0, x19, #16
	bl	_mutex_init
	ldr	x0, [x24]
	mov	x1, x19
	bl	_dev_set_drvdata
Lloh0:
	adrp	x8, _WM831X_PARENT_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_PARENT_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm831x_reg_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.1:
	mov	w8, #25092
	cmp	w22, w8
	b.ne	LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _WM831X_REVISION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM831X_REVISION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm831x_reg_read
	mov	x23, x0
	tbnz	w0, #31, LBB0_14
; %bb.3:
Lloh6:
	adrp	x8, _WM831X_PARENT_REV_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM831X_PARENT_REV_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _WM831X_PARENT_REV_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM831X_PARENT_REV_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
Lloh12:
	adrp	x8, _WM831X_RESET_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM831X_RESET_ID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm831x_reg_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_15
; %bb.4:
	and	w8, w27, w23
	lsr	w8, w8, w26
	mov	w9, #33552
	cmp	w22, w9
	b.gt	LBB0_16
; %bb.5:
	cbz	w22, LBB0_21
; %bb.6:
	mov	w9, #33552
	cmp	w22, w9
	b.ne	LBB0_42
; %bb.7:
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	x0, [x24]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #65
	bl	_dev_info
LBB0_9:
	mov	w23, #130
	b	LBB0_27
LBB0_10:
	ldr	x0, [x24]
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_56
LBB0_12:
	ldr	x0, [x24]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_56
LBB0_14:
	ldr	x0, [x24]
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x22, x23
	b	LBB0_56
LBB0_15:
	ldr	x0, [x24]
	mov	x8, x22
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_56
LBB0_16:
	mov	w9, #33553
	cmp	w22, w9
	b.eq	LBB0_24
; %bb.17:
	mov	w9, #33554
	cmp	w22, w9
	b.ne	LBB0_42
; %bb.18:
	cbnz	w8, LBB0_20
; %bb.19:
	ldr	x0, [x24]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #65
	bl	_dev_info
LBB0_20:
	mov	w23, #128
	b	LBB0_27
LBB0_21:
	cbnz	w8, LBB0_23
; %bb.22:
	ldr	x0, [x24]
	mov	w8, #65
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_dev_info
LBB0_23:
	mov	x23, x21
	b	LBB0_27
LBB0_24:
	cbnz	w8, LBB0_26
; %bb.25:
	ldr	x0, [x24]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #65
	bl	_dev_info
LBB0_26:
	mov	w23, #129
LBB0_27:
	mov	w8, w23
	cmp	x8, x21
	b.eq	LBB0_29
; %bb.28:
	ldr	x0, [x24]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
LBB0_29:
Lloh36:
	adrp	x21, _WM831X_SECURITY_KEY@GOTPAGE
Lloh37:
	ldr	x21, [x21, _WM831X_SECURITY_KEY@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wm831x_reg_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_41
; %bb.30:
	cbz	w22, LBB0_32
; %bb.31:
	ldr	x0, [x19, #8]
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_wm831x_reg_write
LBB0_32:
	mov	w8, #1
	str	w8, [x19]
	cbz	x25, LBB0_36
; %bb.33:
	ldr	x8, [x25]
	cbz	x8, LBB0_36
; %bb.34:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_36
; %bb.35:
	mov	x22, x0
	ldr	x0, [x24]
	str	x22, [sp]
Lloh40:
	adrp	x1, l_.str.12@PAGE
Lloh41:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_11
LBB0_36:
	mov	x0, x19
	mov	x1, x20
	bl	_wm831x_irq_init
	mov	x22, x0
	cbnz	w0, LBB0_56
; %bb.37:
	cmp	w23, #128
	b.eq	LBB0_43
; %bb.38:
	cmp	w23, #129
	b.eq	LBB0_44
; %bb.39:
	cmp	w23, #130
	b.ne	LBB0_47
; %bb.40:
	ldr	x20, [x24]
Lloh42:
	adrp	x8, _wm8310_devs@GOTPAGE
Lloh43:
	ldr	x8, [x8, _wm8310_devs@GOTPAGEOFF]
	b	LBB0_45
LBB0_41:
	ldr	x0, [x24]
	mov	x8, x22
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_err
	b	LBB0_56
LBB0_42:
	ldr	x0, [x24]
	str	x22, [sp]
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_43:
	ldr	x20, [x24]
Lloh48:
	adrp	x8, _wm8312_devs@GOTPAGE
Lloh49:
	ldr	x8, [x8, _wm8312_devs@GOTPAGEOFF]
	b	LBB0_45
LBB0_44:
	ldr	x20, [x24]
Lloh50:
	adrp	x8, _wm8311_devs@GOTPAGE
Lloh51:
	ldr	x8, [x8, _wm8311_devs@GOTPAGEOFF]
LBB0_45:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	mov	x22, x0
	cbz	w0, LBB0_48
; %bb.46:
	ldr	x0, [x24]
Lloh52:
	adrp	x1, l_.str.13@PAGE
Lloh53:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_dev_err
	b	LBB0_55
LBB0_47:
	bl	_BUG
LBB0_48:
	cbz	x25, LBB0_58
; %bb.49:
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_52
; %bb.50:
	ldr	x20, [x24]
Lloh54:
	adrp	x8, _backlight_devs@GOTPAGE
Lloh55:
	ldr	x8, [x8, _backlight_devs@GOTPAGEOFF]
Lloh56:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_52
; %bb.51:
	ldr	x8, [x24]
	str	x0, [sp]
Lloh57:
	adrp	x1, l_.str.14@PAGE
Lloh58:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x8
	bl	_dev_err
LBB0_52:
	mov	x0, x19
	bl	_wm831x_otp_init
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_59
; %bb.53:
	mov	x0, x19
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_57
; %bb.54:
	ldr	x0, [x24]
	str	x22, [sp]
Lloh59:
	adrp	x1, l_.str.15@PAGE
Lloh60:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_55:
	mov	x0, x19
	bl	_wm831x_irq_exit
LBB0_56:
	ldr	x0, [x19, #8]
	bl	_mfd_remove_devices
	mov	x0, x19
	bl	_kfree
LBB0_57:
	mov	x0, x22
	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_58:
	mov	x0, x19
	bl	_wm831x_otp_init
LBB0_59:
	mov	w22, #0
	b	LBB0_57
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_PARENT_ID,4,2           ; @WM831X_PARENT_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read parent ID: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device is not a WM831x: ID %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM831X_REVISION,4,2            ; @WM831X_REVISION
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read revision: %d\n"

	.comm	_WM831X_PARENT_REV_MASK,4,2     ; @WM831X_PARENT_REV_MASK
	.comm	_WM831X_PARENT_REV_SHIFT,4,2    ; @WM831X_PARENT_REV_SHIFT
	.comm	_WM831X_RESET_ID,4,2            ; @WM831X_RESET_ID
l_.str.3:                               ; @.str.3
	.asciz	"Failed to read device ID: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"WM8310 revision %c\n"

l_.str.5:                               ; @.str.5
	.asciz	"WM8311 revision %c\n"

l_.str.6:                               ; @.str.6
	.asciz	"WM8312 revision %c\n"

l_.str.7:                               ; @.str.7
	.asciz	"WM831%d ES revision %c\n"

l_.str.8:                               ; @.str.8
	.asciz	"Unknown WM831x device %04x\n"

l_.str.9:                               ; @.str.9
	.asciz	"Device was registered as a WM831%lu\n"

	.comm	_WM831X_SECURITY_KEY,4,2        ; @WM831X_SECURITY_KEY
l_.str.10:                              ; @.str.10
	.asciz	"Failed to read security key: %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"Security key had non-zero value %x\n"

l_.str.12:                              ; @.str.12
	.asciz	"pre_init() failed: %d\n"

	.comm	_wm8310_devs,4,2                ; @wm8310_devs
	.comm	_wm8311_devs,4,2                ; @wm8311_devs
	.comm	_wm8312_devs,4,2                ; @wm8312_devs
l_.str.13:                              ; @.str.13
	.asciz	"Failed to add children\n"

	.comm	_backlight_devs,4,2             ; @backlight_devs
l_.str.14:                              ; @.str.14
	.asciz	"Failed to add backlight: %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"post_init() failed: %d\n"

	.no_dead_strip	_wm831x_device_init
.subsections_via_symbols
