	.file	"extr_crypto4xx_trng.c_ppc4xx_trng_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to register hwrng (%d).\n"
	.text
	.p2align 4
	.globl	ppc4xx_trng_probe
	.type	ppc4xx_trng_probe, @function
ppc4xx_trng_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR ppc4xx_trng_match[rip]
	mov	r12, QWORD PTR 16[rdi]
	xor	edi, edi
	call	of_find_matching_node@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	of_device_is_available@PLT
	test	eax, eax
	jne	.L17
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	of_node_put@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	xor	esi, esi
	call	of_iomap@PLT
	mov	rdi, rbp
	mov	QWORD PTR [r12], rax
	call	of_node_put@PLT
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	je	.L7
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	call	kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR KBUILD_MODNAME[rip]
	mov	esi, 1
	mov	rdi, r12
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR ppc4xx_trng_data_present[rip]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR ppc4xx_trng_data_read[rip]
	mov	QWORD PTR 0[rbp], r12
	mov	DWORD PTR 8[rbp], eax
	mov	QWORD PTR [rbx], rbp
	call	ppc4xx_trng_enable@PLT
	movsx	rdx, DWORD PTR PPC4XX_TRNG_CTRL[rip]
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR PPC4XX_TRNG_CTRL_DALM[rip]
	lea	rdi, [rax+rdx*4]
	call	out_le32@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	call	devm_hwrng_register@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L18
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L18:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r12
	call	ppc4xx_trng_enable@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
.L15:
	mov	rdi, QWORD PTR [r12]
.L4:
	call	iounmap@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L7:
	.cfi_restore_state
	xor	edi, edi
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ppc4xx_trng_probe, .-ppc4xx_trng_probe
	.comm	ppc4xx_trng_match,4,4
	.comm	ppc4xx_trng_data_read,4,4
	.comm	ppc4xx_trng_data_present,4,4
	.comm	PPC4XX_TRNG_CTRL_DALM,4,4
	.comm	PPC4XX_TRNG_CTRL,4,4
	.comm	KBUILD_MODNAME,4,4
	.comm	GFP_KERNEL,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_crypto4xx_trng.c_ppc4xx_trng_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to register hwrng (%d).\012\000"
	.text
	.align	2
	.global	ppc4xx_trng_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	ppc4xx_trng_probe, %function
ppc4xx_trng_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L18
	mov	r0, #0
	ldr	r1, [r3]
	ldr	r6, [r5, #8]
	bl	of_find_matching_node
	subs	r4, r0, #0
	beq	.L3
	bl	of_device_is_available
	cmp	r0, #0
	bne	.L17
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	of_node_put
.L17:
	mov	r1, #0
	mov	r0, r4
	bl	of_iomap
	mov	r3, r0
	mov	r0, r4
	str	r3, [r6]
	bl	of_node_put
	ldr	r4, [r6]
	cmp	r4, #0
	beq	.L7
	ldr	r3, .L18+4
	mov	r0, #16
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L15
	ldr	r1, .L18+8
	ldr	r2, .L18+12
	ldr	r3, .L18+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	mov	r1, #1
	str	r6, [r4]
	mov	r0, r6
	str	r4, [r5]
	bl	ppc4xx_trng_enable
	ldr	r3, .L18+20
	ldr	r2, [r6]
	ldr	r0, [r3]
	ldr	r3, .L18+24
	add	r0, r2, r0, lsl #2
	ldr	r1, [r3]
	bl	out_le32
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	bl	devm_hwrng_register
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, #0
	mov	r0, r6
	bl	ppc4xx_trng_enable
	mov	r2, r7
	ldr	r1, .L18+28
	ldr	r0, [r5, #4]
	bl	dev_err
.L15:
	ldr	r0, [r6]
.L4:
	bl	iounmap
	mov	r0, r4
	bl	kfree
	mov	r3, #0
	str	r3, [r6]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r4
	b	.L4
.L19:
	.align	2
.L18:
	.word	ppc4xx_trng_match
	.word	GFP_KERNEL
	.word	KBUILD_MODNAME
	.word	ppc4xx_trng_data_present
	.word	ppc4xx_trng_data_read
	.word	PPC4XX_TRNG_CTRL
	.word	PPC4XX_TRNG_CTRL_DALM
	.word	.LC0
	.size	ppc4xx_trng_probe, .-ppc4xx_trng_probe
	.comm	ppc4xx_trng_match,4,4
	.comm	ppc4xx_trng_data_read,4,4
	.comm	ppc4xx_trng_data_present,4,4
	.comm	PPC4XX_TRNG_CTRL_DALM,4,4
	.comm	PPC4XX_TRNG_CTRL,4,4
	.comm	KBUILD_MODNAME,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
