	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9055_device_init             ## -- Begin function da9055_device_init
	.p2align	4, 0x90
_da9055_device_init:                    ## @da9055_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	4(%rdi), %edi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movl	l___const.da9055_device_init.clear_events+8(%rip), %eax
	movl	%eax, -48(%rbp)
	movq	l___const.da9055_device_init.clear_events(%rip), %rax
	movq	%rax, -56(%rbp)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	*%rax
LBB0_3:
	movl	(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	sbbl	%eax, %eax
	orl	%ecx, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	movl	%eax, (%r14)
	movq	_DA9055_REG_EVENT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_da9055_group_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movl	16(%r14), %edi
	movl	(%r14), %ecx
	movl	12(%r14), %esi
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	leaq	8(%r14), %r9
	movq	_da9055_regmap_irq_chip@GOTPCREL(%rip), %r8
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movl	8(%r14), %edi
	callq	_regmap_irq_chip_get_base
	movl	%eax, (%r14)
	movl	4(%r14), %r15d
	movq	_da9055_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	(%r14), %r9d
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_mfd_remove_devices
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.da9055_device_init.clear_events
l___const.da9055_device_init.clear_events:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.comm	_DA9055_REG_EVENT_A,4,2         ## @DA9055_REG_EVENT_A
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_da9055_regmap_irq_chip,4,2     ## @da9055_regmap_irq_chip
	.comm	_da9055_devs,4,2                ## @da9055_devs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9055_device_init             ; -- Begin function da9055_device_init
	.p2align	2
_da9055_device_init:                    ; @da9055_device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0, #4]
	bl	_dev_get_platdata
Lloh3:
	adrp	x8, l___const.da9055_device_init.clear_events@PAGE
Lloh4:
	add	x8, x8, l___const.da9055_device_init.clear_events@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #16]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #0
	csinv	w8, w8, wzr, ne
	b	LBB0_5
LBB0_4:
	mov	w8, #-1
LBB0_5:
	str	w8, [x19]
Lloh5:
	adrp	x8, _DA9055_REG_EVENT_A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DA9055_REG_EVENT_A@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #3
	bl	_da9055_group_write
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldp	w1, w0, [x19, #12]
Lloh8:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w3, [x19]
	add	x5, x19, #8
Lloh14:
	adrp	x4, _da9055_regmap_irq_chip@GOTPAGE
Lloh15:
	ldr	x4, [x4, _da9055_regmap_irq_chip@GOTPAGEOFF]
	bl	_regmap_add_irq_chip
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_regmap_irq_chip_get_base
	str	w0, [x19]
	ldr	w20, [x19, #4]
Lloh16:
	adrp	x8, _da9055_devs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _da9055_devs@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w5, [x19]
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_mfd_remove_devices
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.da9055_device_init.clear_events
l___const.da9055_device_init.clear_events:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.comm	_DA9055_REG_EVENT_A,4,2         ; @DA9055_REG_EVENT_A
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_da9055_regmap_irq_chip,4,2     ; @da9055_regmap_irq_chip
	.comm	_da9055_devs,4,2                ; @da9055_devs
.subsections_via_symbols
