	.file	"extr_zx-reboot.c_zx_reboot_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to map base address"
.LC1:
	.string	"zte,zx296702-pcu"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"failed to map pcu_base address"
	.align 8
.LC3:
	.string	"Register restart handler failed(err=%d)\n"
	.text
	.p2align 4
	.type	zx_reboot_probe, @function
zx_reboot_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	call	of_iomap@PLT
	mov	DWORD PTR base[rip], eax
	test	eax, eax
	je	.L10
	lea	rdx, .LC1[rip]
	xor	esi, esi
	xor	edi, edi
	call	of_find_compatible_node@PLT
	xor	esi, esi
	mov	r12, rax
	mov	rdi, rax
	call	of_iomap@PLT
	mov	rdi, r12
	mov	DWORD PTR pcu_base[rip], eax
	call	of_node_put@PLT
	mov	eax, DWORD PTR pcu_base[rip]
	test	eax, eax
	je	.L11
	lea	rdi, zx_restart_nb[rip]
	call	register_restart_handler@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR base[rip]
	call	iounmap@PLT
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	WARN@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	WARN@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR base[rip]
	call	iounmap@PLT
	mov	edi, DWORD PTR pcu_base[rip]
	call	iounmap@PLT
	mov	edx, r12d
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	zx_reboot_probe, .-zx_reboot_probe
	.comm	zx_restart_nb,4,4
	.comm	pcu_base,4,4
	.comm	base,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_zx-reboot.c_zx_reboot_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to map base address\000"
	.align	2
.LC1:
	.ascii	"zte,zx296702-pcu\000"
	.align	2
.LC2:
	.ascii	"failed to map pcu_base address\000"
	.align	2
.LC3:
	.ascii	"Register restart handler failed(err=%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zx_reboot_probe, %function
zx_reboot_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r5, r0
	ldr	r0, [r0]
	bl	of_iomap
	ldr	r6, .L12
	cmp	r0, #0
	ldreq	r1, .L12+4
	str	r0, [r6]
	beq	.L9
	mov	r1, #0
	ldr	r2, .L12+8
	mov	r0, r1
	bl	of_find_compatible_node
	mov	r1, #0
	mov	r4, r0
	bl	of_iomap
	mov	r3, r0
	ldr	r7, .L12+12
	mov	r0, r4
	str	r3, [r7]
	bl	of_node_put
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L12+16
	bl	register_restart_handler
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r6]
	bl	iounmap
	ldr	r0, [r7]
	bl	iounmap
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L12+20
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r0, [r6]
	bl	iounmap
	ldr	r1, .L12+24
.L9:
	mov	r0, #1
	bl	WARN
	ldr	r3, .L12+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	base
	.word	.LC0
	.word	.LC1
	.word	pcu_base
	.word	zx_restart_nb
	.word	.LC3
	.word	.LC2
	.word	ENODEV
	.size	zx_reboot_probe, .-zx_reboot_probe
	.comm	zx_restart_nb,4,4
	.comm	pcu_base,4,4
	.comm	base,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
