	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_device_init             ## -- Begin function wm8350_device_init
	.p2align	4, 0x90
_wm8350_device_init:                    ## @wm8350_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_WM8350_RESET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rcx
	movl	$4, %edx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movq	_WM8350_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	movl	44(%r12), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_49:
	movl	12(%r12), %edi
	callq	_kfree
LBB0_50:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_WM8350_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	44(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movl	-52(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, -52(%rbp)
	movl	-48(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, -44(%rbp)
	movl	-52(%rbp), %edx
	cmpl	$24899, %edx                    ## imm = 0x6143
	jne	LBB0_7
## %bb.8:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r13d
	movq	_WM8350_CONF_STS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	sarl	$10, %r14d
	andl	%r13d, %r14d
	movq	_WM8350_CUST_ID_MASK@GOTPCREL(%rip), %rcx
	movq	_WM8350_CHIP_REV_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r13d, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %r9d
	sarl	$12, %r9d
	movl	44(%r12), %edi
	movl	(%rcx), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %ecx
	andl	%edx, %ecx
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	%eax, %r8d
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_dev_info
	andl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movl	44(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_33
LBB0_7:
	movl	44(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_34
LBB0_10:
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %eax
	cmpl	$2, %eax
	je	LBB0_28
## %bb.11:
	cmpl	$1, %eax
	je	LBB0_23
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_35
## %bb.13:
	movq	_WM8350_DCDC_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	movq	_WM8350_ISINK_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_22
## %bb.14:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_21:
	movl	44(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_30
LBB0_28:
	movq	_WM8350_DCDC_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	movq	_WM8350_ISINK_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
	movl	44(%r12), %edi
	cmpl	$4095, %edx                     ## imm = 0xFFF
	ja	LBB0_31
## %bb.29:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_30
LBB0_23:
	movq	_WM8350_DCDC_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	movq	_WM8350_ISINK_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
	cmpl	$1, %ecx
	je	LBB0_26
## %bb.24:
	testl	%ecx, %ecx
	jne	LBB0_27
## %bb.25:
	movl	44(%r12), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_30
LBB0_35:
	movl	44(%r12), %edi
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_32
LBB0_26:
	movl	44(%r12), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_30
LBB0_27:
	movl	44(%r12), %edi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_32
LBB0_22:
	movl	44(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_32:
	xorl	%ebx, %ebx
LBB0_33:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_34:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_49
LBB0_20:
	movl	44(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
LBB0_30:
	xorl	%eax, %eax
	callq	_dev_info
	movl	$1, 24(%r12)
	jmp	LBB0_17
LBB0_19:
	movl	44(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	movl	44(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_dev_info
LBB0_17:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_wm8350_create_cache
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.36:
	movq	_WM8350_SYSTEM_INTERRUPTS_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	_WM8350_INT_STATUS_1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	_WM8350_INT_STATUS_2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	_WM8350_UNDER_VOLTAGE_INT_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	_WM8350_GPIO_INT_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	_WM8350_COMPARATOR_INT_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	leaq	52(%r12), %rdi
	callq	_mutex_init
	leaq	48(%r12), %rdi
	callq	_mutex_init
	testl	%r15d, %r15d
	je	LBB0_48
## %bb.37:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_40
## %bb.38:
	cmpq	$0, 8(%rax)
	je	LBB0_40
## %bb.39:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WM8350_SYSTEM_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_IRQ_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_wm8350_set_bits
	jmp	LBB0_41
LBB0_18:
	movl	44(%r12), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_50
LBB0_40:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WM8350_SYSTEM_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_IRQ_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_wm8350_clear_bits
LBB0_41:
	orl	%r13d, %ebx
	movq	_wm8350_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.17(%rip), %r8
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_43
## %bb.42:
	movl	%eax, %ebx
	movl	44(%r12), %edi
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_2
LBB0_48:
	movl	44(%r12), %edi
	leaq	L_.str.19(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_49
LBB0_43:
	movl	%r15d, 8(%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_47
## %bb.44:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_47
## %bb.45:
	movq	%r12, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_47
## %bb.46:
	movl	%eax, %ebx
	movl	44(%r12), %edi
	leaq	L_.str.20(%rip), %rsi
	jmp	LBB0_2
LBB0_47:
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_wm8350_reg_write
	leaq	40(%r12), %rdx
	leaq	L_.str.21(%rip), %rsi
	movq	%r12, %rdi
	callq	_wm8350_client_dev_register
	leaq	36(%r12), %rdx
	leaq	L_.str.22(%rip), %rsi
	movq	%r12, %rdi
	callq	_wm8350_client_dev_register
	leaq	32(%r12), %rdx
	leaq	L_.str.23(%rip), %rsi
	movq	%r12, %rdi
	callq	_wm8350_client_dev_register
	leaq	28(%r12), %rdx
	leaq	L_.str.24(%rip), %rsi
	movq	%r12, %rdi
	callq	_wm8350_client_dev_register
	leaq	20(%r12), %rdx
	leaq	L_.str.25(%rip), %rsi
	movq	%r12, %rdi
	callq	_wm8350_client_dev_register
	leaq	16(%r12), %rdx
	leaq	L_.str.26(%rip), %rsi
	movq	%r12, %rdi
	callq	_wm8350_client_dev_register
	jmp	LBB0_50
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_WM8350_RESET_ID,4,2            ## @WM8350_RESET_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read ID: %d\n"

	.comm	_WM8350_ID,4,2                  ## @WM8350_ID
	.comm	_WM8350_REVISION,4,2            ## @WM8350_REVISION
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read revision: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Device with ID %x is not a WM8350\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_WM8350_CONF_STS_MASK,4,2       ## @WM8350_CONF_STS_MASK
	.comm	_WM8350_CUST_ID_MASK,4,2        ## @WM8350_CUST_ID_MASK
	.comm	_WM8350_CHIP_REV_MASK,4,2       ## @WM8350_CHIP_REV_MASK
L_.str.3:                               ## @.str.3
	.asciz	"CONF_STS %d, CUST_ID %d, MASK_REV %d, CHIP_REV %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unsupported CUST_ID\n"

	.comm	_WM8350_DCDC_6,8,3              ## @WM8350_DCDC_6
	.comm	_WM8350_ISINK_B,8,3             ## @WM8350_ISINK_B
L_.str.5:                               ## @.str.5
	.asciz	"WM8350 Rev E\n"

L_.str.6:                               ## @.str.6
	.asciz	"WM8350 Rev F\n"

L_.str.7:                               ## @.str.7
	.asciz	"WM8350 Rev G\n"

L_.str.8:                               ## @.str.8
	.asciz	"WM8350 Rev H\n"

L_.str.9:                               ## @.str.9
	.asciz	"Unknown WM8350 CHIP_REV\n"

	.comm	_WM8350_DCDC_4,8,3              ## @WM8350_DCDC_4
	.comm	_WM8350_ISINK_A,8,3             ## @WM8350_ISINK_A
L_.str.10:                              ## @.str.10
	.asciz	"WM8351 Rev A\n"

L_.str.11:                              ## @.str.11
	.asciz	"WM8351 Rev B\n"

L_.str.12:                              ## @.str.12
	.asciz	"Unknown WM8351 CHIP_REV\n"

L_.str.13:                              ## @.str.13
	.asciz	"WM8352 Rev A\n"

L_.str.14:                              ## @.str.14
	.asciz	"Unknown WM8352 CHIP_REV\n"

L_.str.15:                              ## @.str.15
	.asciz	"Unknown MASK_REV\n"

L_.str.16:                              ## @.str.16
	.asciz	"Failed to create register cache\n"

	.comm	_WM8350_SYSTEM_INTERRUPTS_MASK,4,2 ## @WM8350_SYSTEM_INTERRUPTS_MASK
	.comm	_WM8350_INT_STATUS_1_MASK,4,2   ## @WM8350_INT_STATUS_1_MASK
	.comm	_WM8350_INT_STATUS_2_MASK,4,2   ## @WM8350_INT_STATUS_2_MASK
	.comm	_WM8350_UNDER_VOLTAGE_INT_STATUS_MASK,4,2 ## @WM8350_UNDER_VOLTAGE_INT_STATUS_MASK
	.comm	_WM8350_GPIO_INT_STATUS_MASK,4,2 ## @WM8350_GPIO_INT_STATUS_MASK
	.comm	_WM8350_COMPARATOR_INT_STATUS_MASK,4,2 ## @WM8350_COMPARATOR_INT_STATUS_MASK
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_WM8350_SYSTEM_CONTROL_1,4,2    ## @WM8350_SYSTEM_CONTROL_1
	.comm	_WM8350_IRQ_POL,4,2             ## @WM8350_IRQ_POL
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_wm8350_irq,4,2                 ## @wm8350_irq
L_.str.17:                              ## @.str.17
	.asciz	"wm8350"

L_.str.18:                              ## @.str.18
	.asciz	"Failed to request IRQ: %d\n"

L_.str.19:                              ## @.str.19
	.asciz	"No IRQ configured\n"

L_.str.20:                              ## @.str.20
	.asciz	"Platform init() failed: %d\n"

L_.str.21:                              ## @.str.21
	.asciz	"wm8350-codec"

L_.str.22:                              ## @.str.22
	.asciz	"wm8350-gpio"

L_.str.23:                              ## @.str.23
	.asciz	"wm8350-hwmon"

L_.str.24:                              ## @.str.24
	.asciz	"wm8350-power"

L_.str.25:                              ## @.str.25
	.asciz	"wm8350-rtc"

L_.str.26:                              ## @.str.26
	.asciz	"wm8350-wdt"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_device_init             ; -- Begin function wm8350_device_init
	.p2align	2
_wm8350_device_init:                    ; @wm8350_device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WM8350_RESET_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM8350_RESET_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x3, sp, #44
	mov	w2, #4
	blr	x8
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19, #44]
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
	b	LBB0_8
LBB0_3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _WM8350_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WM8350_ID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	add	x3, sp, #40
	mov	x0, x19
	mov	w2, #4
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
	ldr	w0, [x19, #44]
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _WM8350_REVISION@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WM8350_REVISION@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	add	x3, sp, #36
	mov	x0, x19
	mov	w2, #4
	blr	x8
	cbz	w0, LBB0_10
; %bb.6:
	mov	x22, x0
	ldr	w0, [x19, #44]
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_8:
	ldr	w0, [x19, #12]
	bl	_kfree
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	ldr	w0, [sp, #44]
	bl	_be16_to_cpu
	str	w0, [sp, #44]
	ldr	w0, [sp, #40]
	bl	_be16_to_cpu
	str	w0, [sp, #40]
	ldr	w0, [sp, #36]
	bl	_be16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #36]
	ldr	w8, [sp, #44]
	mov	w9, #24899
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [sp, #40]
Lloh15:
	adrp	x9, _WM8350_CONF_STS_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WM8350_CONF_STS_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w22, w8, w9, asr #10
Lloh18:
	adrp	x9, _WM8350_CUST_ID_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WM8350_CUST_ID_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w25, w9, w8
Lloh21:
	adrp	x9, _WM8350_CHIP_REV_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WM8350_CHIP_REV_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w24, w9, w8
	asr	w23, w24, #12
	ldr	w8, [x19, #44]
	stp	x22, x25, [sp]
	stp	x0, x23, [sp, #16]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	cbz	w25, LBB0_15
; %bb.12:
	ldr	w0, [x19, #44]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	w0, [x19, #44]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	bl	_dev_err
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_15:
	ldr	w8, [sp, #36]
	cmp	w8, #2
	b.eq	LBB0_21
; %bb.16:
	cmp	w8, #1
	b.eq	LBB0_23
; %bb.17:
	cbnz	w8, LBB0_26
; %bb.18:
Lloh33:
	adrp	x8, _WM8350_DCDC_6@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WM8350_DCDC_6@GOTPAGEOFF]
Lloh35:
	adrp	x9, _WM8350_ISINK_B@GOTPAGE
Lloh36:
	ldr	x9, [x9, _WM8350_ISINK_B@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #56]
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_30
; %bb.19:
Lloh39:
	adrp	x9, lJTI0_0@PAGE
Lloh40:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_20
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_20:
	ldr	w0, [x19, #44]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_32
LBB0_21:
Lloh43:
	adrp	x8, _WM8350_DCDC_6@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WM8350_DCDC_6@GOTPAGEOFF]
Lloh45:
	adrp	x9, _WM8350_ISINK_B@GOTPAGE
Lloh46:
	ldr	x9, [x9, _WM8350_ISINK_B@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
Lloh48:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #56]
	ldr	w0, [x19, #44]
	cmp	w24, #4095
	b.hi	LBB0_27
; %bb.22:
Lloh49:
	adrp	x1, l_.str.13@PAGE
Lloh50:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_32
LBB0_23:
Lloh51:
	adrp	x8, _WM8350_DCDC_4@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WM8350_DCDC_4@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
Lloh54:
	adrp	x9, _WM8350_ISINK_A@GOTPAGE
Lloh55:
	ldr	x9, [x9, _WM8350_ISINK_A@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #56]
	cmp	w23, #1
	b.eq	LBB0_28
; %bb.24:
	cbnz	w23, LBB0_29
; %bb.25:
	ldr	w0, [x19, #44]
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_32
LBB0_26:
	ldr	w0, [x19, #44]
Lloh59:
	adrp	x1, l_.str.15@PAGE
Lloh60:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_14
LBB0_27:
Lloh61:
	adrp	x1, l_.str.14@PAGE
Lloh62:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_14
LBB0_28:
	ldr	w0, [x19, #44]
Lloh63:
	adrp	x1, l_.str.11@PAGE
Lloh64:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_32
LBB0_29:
	ldr	w0, [x19, #44]
Lloh65:
	adrp	x1, l_.str.12@PAGE
Lloh66:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_14
LBB0_30:
	ldr	w0, [x19, #44]
Lloh67:
	adrp	x1, l_.str.9@PAGE
Lloh68:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_14
LBB0_31:
	ldr	w0, [x19, #44]
Lloh69:
	adrp	x1, l_.str.7@PAGE
Lloh70:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_32:
	bl	_dev_info
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_36
LBB0_33:
	ldr	w0, [x19, #44]
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_35
LBB0_34:
	ldr	w0, [x19, #44]
Lloh73:
	adrp	x1, l_.str.5@PAGE
Lloh74:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_35:
	bl	_dev_info
LBB0_36:
	ldr	w1, [sp, #36]
	mov	x0, x19
	mov	x2, x22
	bl	_wm8350_create_cache
	mov	x22, x0
	tbnz	w0, #31, LBB0_41
; %bb.37:
Lloh75:
	adrp	x23, _WM8350_SYSTEM_INTERRUPTS_MASK@GOTPAGE
Lloh76:
	ldr	x23, [x23, _WM8350_SYSTEM_INTERRUPTS_MASK@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
Lloh77:
	adrp	x8, _WM8350_INT_STATUS_1_MASK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _WM8350_INT_STATUS_1_MASK@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
Lloh80:
	adrp	x8, _WM8350_INT_STATUS_2_MASK@GOTPAGE
Lloh81:
	ldr	x8, [x8, _WM8350_INT_STATUS_2_MASK@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
Lloh83:
	adrp	x8, _WM8350_UNDER_VOLTAGE_INT_STATUS_MASK@GOTPAGE
Lloh84:
	ldr	x8, [x8, _WM8350_UNDER_VOLTAGE_INT_STATUS_MASK@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
Lloh86:
	adrp	x8, _WM8350_GPIO_INT_STATUS_MASK@GOTPAGE
Lloh87:
	ldr	x8, [x8, _WM8350_GPIO_INT_STATUS_MASK@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
Lloh89:
	adrp	x8, _WM8350_COMPARATOR_INT_STATUS_MASK@GOTPAGE
Lloh90:
	ldr	x8, [x8, _WM8350_COMPARATOR_INT_STATUS_MASK@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
	add	x0, x19, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_mutex_init
	cbz	w21, LBB0_45
; %bb.38:
Lloh92:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh94:
	ldr	w22, [x8]
	cbz	x20, LBB0_42
; %bb.39:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_42
; %bb.40:
Lloh95:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh96:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh97:
	ldr	w24, [x8]
Lloh98:
	adrp	x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGE
Lloh99:
	ldr	x8, [x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
Lloh101:
	adrp	x8, _WM8350_IRQ_POL@GOTPAGE
Lloh102:
	ldr	x8, [x8, _WM8350_IRQ_POL@GOTPAGEOFF]
Lloh103:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_set_bits
	b	LBB0_43
LBB0_41:
	ldr	w0, [x19, #44]
Lloh104:
	adrp	x1, l_.str.16@PAGE
Lloh105:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_42:
Lloh106:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh107:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh108:
	ldr	w24, [x8]
Lloh109:
	adrp	x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGE
Lloh110:
	ldr	x8, [x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGEOFF]
Lloh111:
	ldr	w1, [x8]
Lloh112:
	adrp	x8, _WM8350_IRQ_POL@GOTPAGE
Lloh113:
	ldr	x8, [x8, _WM8350_IRQ_POL@GOTPAGEOFF]
Lloh114:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_clear_bits
LBB0_43:
	orr	w3, w24, w22
Lloh115:
	adrp	x8, _wm8350_irq@GOTPAGE
Lloh116:
	ldr	x8, [x8, _wm8350_irq@GOTPAGEOFF]
Lloh117:
	ldr	w2, [x8]
Lloh118:
	adrp	x4, l_.str.17@PAGE
Lloh119:
	add	x4, x4, l_.str.17@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	cbz	w0, LBB0_46
; %bb.44:
	mov	x22, x0
	ldr	w0, [x19, #44]
	str	x22, [sp]
Lloh120:
	adrp	x1, l_.str.18@PAGE
Lloh121:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_7
LBB0_45:
	ldr	w0, [x19, #44]
Lloh122:
	adrp	x1, l_.str.19@PAGE
Lloh123:
	add	x1, x1, l_.str.19@PAGEOFF
	b	LBB0_2
LBB0_46:
	str	w21, [x19, #8]
	cbz	x20, LBB0_50
; %bb.47:
	ldr	x8, [x20]
	cbz	x8, LBB0_50
; %bb.48:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_50
; %bb.49:
	mov	x22, x0
	ldr	w0, [x19, #44]
	str	x22, [sp]
Lloh124:
	adrp	x1, l_.str.20@PAGE
Lloh125:
	add	x1, x1, l_.str.20@PAGEOFF
	b	LBB0_7
LBB0_50:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_wm8350_reg_write
	add	x2, x19, #40
Lloh126:
	adrp	x1, l_.str.21@PAGE
Lloh127:
	add	x1, x1, l_.str.21@PAGEOFF
	mov	x0, x19
	bl	_wm8350_client_dev_register
	add	x2, x19, #36
Lloh128:
	adrp	x1, l_.str.22@PAGE
Lloh129:
	add	x1, x1, l_.str.22@PAGEOFF
	mov	x0, x19
	bl	_wm8350_client_dev_register
	add	x2, x19, #32
Lloh130:
	adrp	x1, l_.str.23@PAGE
Lloh131:
	add	x1, x1, l_.str.23@PAGEOFF
	mov	x0, x19
	bl	_wm8350_client_dev_register
	add	x2, x19, #28
Lloh132:
	adrp	x1, l_.str.24@PAGE
Lloh133:
	add	x1, x1, l_.str.24@PAGEOFF
	mov	x0, x19
	bl	_wm8350_client_dev_register
	add	x2, x19, #20
Lloh134:
	adrp	x1, l_.str.25@PAGE
Lloh135:
	add	x1, x1, l_.str.25@PAGEOFF
	mov	x0, x19
	bl	_wm8350_client_dev_register
	add	x2, x19, #16
Lloh136:
	adrp	x1, l_.str.26@PAGE
Lloh137:
	add	x1, x1, l_.str.26@PAGEOFF
	mov	x0, x19
	bl	_wm8350_client_dev_register
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh47
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpAdd	Lloh132, Lloh133
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh126, Lloh127
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_31-LBB0_20)>>2
	.byte	(LBB0_33-LBB0_20)>>2
	.byte	(LBB0_34-LBB0_20)>>2
                                        ; -- End function
	.comm	_WM8350_RESET_ID,4,2            ; @WM8350_RESET_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read ID: %d\n"

	.comm	_WM8350_ID,4,2                  ; @WM8350_ID
	.comm	_WM8350_REVISION,4,2            ; @WM8350_REVISION
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read revision: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Device with ID %x is not a WM8350\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_WM8350_CONF_STS_MASK,4,2       ; @WM8350_CONF_STS_MASK
	.comm	_WM8350_CUST_ID_MASK,4,2        ; @WM8350_CUST_ID_MASK
	.comm	_WM8350_CHIP_REV_MASK,4,2       ; @WM8350_CHIP_REV_MASK
l_.str.3:                               ; @.str.3
	.asciz	"CONF_STS %d, CUST_ID %d, MASK_REV %d, CHIP_REV %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unsupported CUST_ID\n"

	.comm	_WM8350_DCDC_6,8,3              ; @WM8350_DCDC_6
	.comm	_WM8350_ISINK_B,8,3             ; @WM8350_ISINK_B
l_.str.5:                               ; @.str.5
	.asciz	"WM8350 Rev E\n"

l_.str.6:                               ; @.str.6
	.asciz	"WM8350 Rev F\n"

l_.str.7:                               ; @.str.7
	.asciz	"WM8350 Rev G\n"

l_.str.8:                               ; @.str.8
	.asciz	"WM8350 Rev H\n"

l_.str.9:                               ; @.str.9
	.asciz	"Unknown WM8350 CHIP_REV\n"

	.comm	_WM8350_DCDC_4,8,3              ; @WM8350_DCDC_4
	.comm	_WM8350_ISINK_A,8,3             ; @WM8350_ISINK_A
l_.str.10:                              ; @.str.10
	.asciz	"WM8351 Rev A\n"

l_.str.11:                              ; @.str.11
	.asciz	"WM8351 Rev B\n"

l_.str.12:                              ; @.str.12
	.asciz	"Unknown WM8351 CHIP_REV\n"

l_.str.13:                              ; @.str.13
	.asciz	"WM8352 Rev A\n"

l_.str.14:                              ; @.str.14
	.asciz	"Unknown WM8352 CHIP_REV\n"

l_.str.15:                              ; @.str.15
	.asciz	"Unknown MASK_REV\n"

l_.str.16:                              ; @.str.16
	.asciz	"Failed to create register cache\n"

	.comm	_WM8350_SYSTEM_INTERRUPTS_MASK,4,2 ; @WM8350_SYSTEM_INTERRUPTS_MASK
	.comm	_WM8350_INT_STATUS_1_MASK,4,2   ; @WM8350_INT_STATUS_1_MASK
	.comm	_WM8350_INT_STATUS_2_MASK,4,2   ; @WM8350_INT_STATUS_2_MASK
	.comm	_WM8350_UNDER_VOLTAGE_INT_STATUS_MASK,4,2 ; @WM8350_UNDER_VOLTAGE_INT_STATUS_MASK
	.comm	_WM8350_GPIO_INT_STATUS_MASK,4,2 ; @WM8350_GPIO_INT_STATUS_MASK
	.comm	_WM8350_COMPARATOR_INT_STATUS_MASK,4,2 ; @WM8350_COMPARATOR_INT_STATUS_MASK
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_WM8350_SYSTEM_CONTROL_1,4,2    ; @WM8350_SYSTEM_CONTROL_1
	.comm	_WM8350_IRQ_POL,4,2             ; @WM8350_IRQ_POL
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_wm8350_irq,4,2                 ; @wm8350_irq
l_.str.17:                              ; @.str.17
	.asciz	"wm8350"

l_.str.18:                              ; @.str.18
	.asciz	"Failed to request IRQ: %d\n"

l_.str.19:                              ; @.str.19
	.asciz	"No IRQ configured\n"

l_.str.20:                              ; @.str.20
	.asciz	"Platform init() failed: %d\n"

l_.str.21:                              ; @.str.21
	.asciz	"wm8350-codec"

l_.str.22:                              ; @.str.22
	.asciz	"wm8350-gpio"

l_.str.23:                              ; @.str.23
	.asciz	"wm8350-hwmon"

l_.str.24:                              ; @.str.24
	.asciz	"wm8350-power"

l_.str.25:                              ; @.str.25
	.asciz	"wm8350-rtc"

l_.str.26:                              ; @.str.26
	.asciz	"wm8350-wdt"

.subsections_via_symbols
