	.file	"extr_pmecc.c_atmel_pmecc_create_gf_tables.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_pmecc_create_gf_tables, @function
atmel_pmecc_create_gf_tables:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR [rdi], 512
	je	.L9
	mov	ebp, DWORD PTR PMECC_GF_DIMENSION_14[rip]
	mov	r13d, DWORD PTR PMECC_GF_14_PRIMITIVE_POLY[rip]
	mov	ebx, DWORD PTR PMECC_LOOKUP_TABLE_SIZE_1024[rip]
.L3:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 16[0+rbx*8]
	call	kzalloc@PLT
	mov	edi, DWORD PTR ENOMEM[rip]
	mov	r12, rax
	neg	edi
	test	rax, rax
	je	.L7
	lea	rax, 16[rax]
	mov	edi, ebp
	mov	rdx, r12
	mov	esi, r13d
	add	rbx, rax
	mov	QWORD PTR [r12], rax
	mov	QWORD PTR 8[r12], rbx
	call	atmel_pmecc_build_gf_tables@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	rdi, r12
	call	kfree@PLT
	mov	edi, ebp
.L7:
	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
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ebp, DWORD PTR PMECC_GF_DIMENSION_13[rip]
	mov	r13d, DWORD PTR PMECC_GF_13_PRIMITIVE_POLY[rip]
	mov	ebx, DWORD PTR PMECC_LOOKUP_TABLE_SIZE_512[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	atmel_pmecc_create_gf_tables, .-atmel_pmecc_create_gf_tables
	.comm	PMECC_LOOKUP_TABLE_SIZE_512,4,4
	.comm	PMECC_LOOKUP_TABLE_SIZE_1024,4,4
	.comm	PMECC_GF_DIMENSION_14,4,4
	.comm	PMECC_GF_DIMENSION_13,4,4
	.comm	PMECC_GF_14_PRIMITIVE_POLY,4,4
	.comm	PMECC_GF_13_PRIMITIVE_POLY,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_pmecc.c_atmel_pmecc_create_gf_tables.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_pmecc_create_gf_tables, %function
atmel_pmecc_create_gf_tables:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #512
	ldreq	r3, .L9
	ldrne	r3, .L9+4
	ldreq	r1, .L9+8
	ldr	r5, [r3]
	ldrne	r1, .L9+12
	ldr	r3, .L9+16
	ldreq	r2, .L9+20
	ldrne	r2, .L9+24
	add	r0, r5, #1
	ldr	r6, [r1]
	lsl	r0, r0, #3
	ldr	r1, [r3]
	ldr	r7, [r2]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L8
	add	r3, r4, #8
	add	r5, r3, r5
	stm	r4, {r3, r5}
	mov	r1, r7
	mov	r0, r6
	mov	r2, r4
	bl	atmel_pmecc_build_gf_tables
	subs	r5, r0, #0
	mov	r0, r4
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_PTR
.L8:
	ldr	r3, .L9+28
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L10:
	.align	2
.L9:
	.word	PMECC_LOOKUP_TABLE_SIZE_512
	.word	PMECC_LOOKUP_TABLE_SIZE_1024
	.word	PMECC_GF_DIMENSION_13
	.word	PMECC_GF_DIMENSION_14
	.word	GFP_KERNEL
	.word	PMECC_GF_13_PRIMITIVE_POLY
	.word	PMECC_GF_14_PRIMITIVE_POLY
	.word	ENOMEM
	.size	atmel_pmecc_create_gf_tables, .-atmel_pmecc_create_gf_tables
	.comm	PMECC_LOOKUP_TABLE_SIZE_512,4,4
	.comm	PMECC_LOOKUP_TABLE_SIZE_1024,4,4
	.comm	PMECC_GF_DIMENSION_14,4,4
	.comm	PMECC_GF_DIMENSION_13,4,4
	.comm	PMECC_GF_14_PRIMITIVE_POLY,4,4
	.comm	PMECC_GF_13_PRIMITIVE_POLY,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
