	.file	"extr_reset-ath79.c_ath79_reset_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to register restart handler\n"
	.text
	.p2align 4
	.type	ath79_reset_probe, @function
ath79_reset_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 40
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	devm_kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	rsi, rax
	mov	rdi, r12
	mov	rbp, rax
	call	platform_set_drvdata@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r12
	call	platform_get_resource@PLT
	mov	rdi, r12
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 36[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	lea	rdi, 32[rbp]
	call	spin_lock_init@PLT
	lea	rax, ath79_reset_ops[rip]
	lea	rsi, 8[rbp]
	mov	rdi, r12
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR THIS_MODULE[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 16[rbp], eax
	movabs	rax, 137438953473
	mov	QWORD PTR 8[rbp], rax
	call	devm_reset_controller_register@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR ath79_reset_restart_handler[rip]
	mov	DWORD PTR 0[rbp], 128
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	register_restart_handler@PLT
	test	eax, eax
	jne	.L10
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 36[rbp]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_warn@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ath79_reset_probe, .-ath79_reset_probe
	.comm	ath79_reset_restart_handler,4,4
	.comm	ath79_reset_ops,4,4
	.comm	THIS_MODULE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_reset-ath79.c_ath79_reset_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to register restart handler\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath79_reset_probe, %function
ath79_reset_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	mov	r1, #36
	ldr	r2, [r3]
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L10
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	ldr	r3, .L13+4
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r6
	bl	devm_ioremap_resource
	str	r0, [r4, #32]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L11
	add	r0, r4, #28
	bl	spin_lock_init
	mov	r3, #1
	mov	r2, #32
	ldr	r0, .L13+8
	ldr	r1, [r6]
	ldr	r0, [r0]
	str	r3, [r4, #8]
	ldr	r3, .L13+12
	str	r0, [r4, #20]
	str	r1, [r4, #16]
	mov	r0, r6
	str	r2, [r4, #12]
	str	r3, [r4, #24]
	add	r1, r4, #8
	bl	devm_reset_controller_register
	subs	r5, r0, #0
	bne	.L1
	mov	r2, #128
	ldr	r3, .L13+16
	mov	r0, r4
	ldr	r3, [r3]
	stm	r4, {r2, r3}
	bl	register_restart_handler
	cmp	r0, #0
	bne	.L12
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, [r4, #32]
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L10:
	ldr	r3, .L13+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r6
	ldr	r1, .L13+24
	bl	dev_warn
	b	.L1
.L14:
	.align	2
.L13:
	.word	GFP_KERNEL
	.word	IORESOURCE_MEM
	.word	THIS_MODULE
	.word	ath79_reset_ops
	.word	ath79_reset_restart_handler
	.word	ENOMEM
	.word	.LC0
	.size	ath79_reset_probe, .-ath79_reset_probe
	.comm	ath79_reset_restart_handler,4,4
	.comm	ath79_reset_ops,4,4
	.comm	THIS_MODULE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
