	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9052_device_init             ## -- Begin function da9052_device_init
	.p2align	4, 0x90
_da9052_device_init:                    ## @da9052_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_dev_get_platdata
	movq	%rax, %r15
	leaq	12(%rbx), %rdi
	callq	_mutex_init
	leaq	8(%rbx), %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	callq	_da9052_clear_fault_log
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_5:
	movl	%r14d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_da9052_irq_init
	movl	(%rbx), %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_7:
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_da9052_subdev_info@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movl	%r15d, %edx
	callq	_dev_err
	movl	%r15d, %r14d
	movl	(%rbx), %edi
	callq	_mfd_remove_devices
	movq	%rbx, %rdi
	callq	_da9052_irq_exit
	jmp	LBB0_13
LBB0_9:
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %r12
	leaq	L_.str.3(%rip), %rsi
	callq	_device_property_read_bool
	testl	%eax, %eax
	je	LBB0_10
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rbx), %r15d
	movl	(%r12), %r12d
	movq	_da9052_tsi_subdev_info@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot clear FAULT_LOG\n"

L_.str.1:                               ## @.str.1
	.asciz	"da9052_irq_init failed: %d\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_da9052_subdev_info,4,2         ## @da9052_subdev_info
L_.str.2:                               ## @.str.2
	.asciz	"mfd_add_devices failed: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"dlg,tsi-as-adc"

	.comm	_da9052_tsi_subdev_info,4,2     ## @da9052_tsi_subdev_info
L_.str.4:                               ## @.str.4
	.asciz	"failed to add TSI subdev: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9052_device_init             ; -- Begin function da9052_device_init
	.p2align	2
_da9052_device_init:                    ; @da9052_device_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	mov	x22, x0
	ldr	w0, [x22], #8
	bl	_dev_get_platdata
	mov	x21, x0
	add	x0, x19, #12
	bl	_mutex_init
	mov	x0, x22
	bl	_init_completion
	mov	x0, x19
	bl	_da9052_clear_fault_log
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	cbz	x21, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	str	w20, [x19, #4]
	mov	x0, x19
	bl	_da9052_irq_init
	ldr	w21, [x19]
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x23, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
	ldr	w20, [x23]
Lloh6:
	adrp	x8, _da9052_subdev_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _da9052_subdev_info@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_10
; %bb.8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x2, x20
	bl	_dev_err
	ldr	w0, [x19]
	bl	_mfd_remove_devices
	mov	x0, x19
	bl	_da9052_irq_exit
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_device_property_read_bool
	cbz	w0, LBB0_13
; %bb.11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w20, [x19]
	ldr	w21, [x23]
Lloh13:
	adrp	x8, _da9052_tsi_subdev_info@GOTPAGE
Lloh14:
	ldr	x8, [x8, _da9052_tsi_subdev_info@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.14:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot clear FAULT_LOG\n"

l_.str.1:                               ; @.str.1
	.asciz	"da9052_irq_init failed: %d\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_da9052_subdev_info,4,2         ; @da9052_subdev_info
l_.str.2:                               ; @.str.2
	.asciz	"mfd_add_devices failed: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"dlg,tsi-as-adc"

	.comm	_da9052_tsi_subdev_info,4,2     ; @da9052_tsi_subdev_info
l_.str.4:                               ; @.str.4
	.asciz	"failed to add TSI subdev: %d\n"

.subsections_via_symbols
