	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8505_powercut_restart_write
_ab8505_powercut_restart_write:         ## @ab8505_powercut_restart_write
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_power_supply_get_drvdata
	movq	%rax, %r15
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoint
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	-36(%rbp), %ecx
	cmpl	$15, %ecx
	jle	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %edi
	movq	_AB8500_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AB8505_RTC_PCUT_RESTART_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_6:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect parameter, echo 0 - 15 for number of restart\n"

	.comm	_AB8500_RTC,4,2                 ## @AB8500_RTC
	.comm	_AB8505_RTC_PCUT_RESTART_REG,4,2 ## @AB8505_RTC_PCUT_RESTART_REG
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set AB8505_RTC_PCUT_RESTART_REG\n"

	.no_dead_strip	_ab8505_powercut_restart_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8505_powercut_restart_write
_ab8505_powercut_restart_write:         ; @ab8505_powercut_restart_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	bl	_dev_get_drvdata
	bl	_power_supply_get_drvdata
	mov	x21, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoint
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w3, [sp, #12]
	cmp	w3, #15
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _AB8500_RTC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AB8500_RTC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _AB8505_RTC_PCUT_RESTART_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AB8505_RTC_PCUT_RESTART_REG@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_abx500_set_register_interruptible
	tbz	w0, #31, LBB0_6
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_dev_err
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect parameter, echo 0 - 15 for number of restart\n"

	.comm	_AB8500_RTC,4,2                 ; @AB8500_RTC
	.comm	_AB8505_RTC_PCUT_RESTART_REG,4,2 ; @AB8505_RTC_PCUT_RESTART_REG
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set AB8505_RTC_PCUT_RESTART_REG\n"

	.no_dead_strip	_ab8505_powercut_restart_write
.subsections_via_symbols
