	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pmecc_create_gf_tables
_atmel_pmecc_create_gf_tables:          ## @atmel_pmecc_create_gf_tables
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	cmpl	$512, %r12d                     ## imm = 0x200
	jne	LBB0_1
## %bb.2:
	movq	_PMECC_LOOKUP_TABLE_SIZE_512@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PMECC_LOOKUP_TABLE_SIZE_1024@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	movq	_PMECC_GF_DIMENSION_13@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PMECC_GF_DIMENSION_14@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_PMECC_GF_13_PRIMITIVE_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PMECC_GF_14_PRIMITIVE_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	16(,%r13,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	cmpl	$512, %r12d                     ## imm = 0x200
	cmovel	-44(%rbp), %r15d                ## 4-byte Folded Reload
	cmovel	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addq	$16, %rax
	movq	%rax, (%rbx)
	movl	%r13d, %eax
	leaq	16(%rbx,%rax), %rax
	movq	%rax, 8(%rbx)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_atmel_pmecc_build_gf_tables
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMECC_GF_DIMENSION_13,4,2      ## @PMECC_GF_DIMENSION_13
	.comm	_PMECC_GF_13_PRIMITIVE_POLY,4,2 ## @PMECC_GF_13_PRIMITIVE_POLY
	.comm	_PMECC_LOOKUP_TABLE_SIZE_512,4,2 ## @PMECC_LOOKUP_TABLE_SIZE_512
	.comm	_PMECC_GF_DIMENSION_14,4,2      ## @PMECC_GF_DIMENSION_14
	.comm	_PMECC_GF_14_PRIMITIVE_POLY,4,2 ## @PMECC_GF_14_PRIMITIVE_POLY
	.comm	_PMECC_LOOKUP_TABLE_SIZE_1024,4,2 ## @PMECC_LOOKUP_TABLE_SIZE_1024
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_atmel_pmecc_create_gf_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pmecc_create_gf_tables
_atmel_pmecc_create_gf_tables:          ; @atmel_pmecc_create_gf_tables
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _PMECC_LOOKUP_TABLE_SIZE_512@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMECC_LOOKUP_TABLE_SIZE_512@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PMECC_LOOKUP_TABLE_SIZE_1024@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PMECC_LOOKUP_TABLE_SIZE_1024@GOTPAGEOFF]
	cmp	w20, #512
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
Lloh4:
	adrp	x8, _PMECC_GF_DIMENSION_13@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PMECC_GF_DIMENSION_13@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
Lloh7:
	adrp	x8, _PMECC_GF_DIMENSION_14@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PMECC_GF_DIMENSION_14@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _PMECC_GF_13_PRIMITIVE_POLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PMECC_GF_13_PRIMITIVE_POLY@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
Lloh13:
	adrp	x8, _PMECC_GF_14_PRIMITIVE_POLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PMECC_GF_14_PRIMITIVE_POLY@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	lsl	w8, w21, #3
	add	w0, w8, #16
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	cmp	w20, #512
	csel	w1, w24, w25, eq
	csel	w0, w22, w23, eq
	add	x8, x19, #16
	add	x9, x8, w21, uxtw
	stp	x8, x9, [x19]
	mov	x2, x19
	bl	_atmel_pmecc_build_gf_tables
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PMECC_GF_DIMENSION_13,4,2      ; @PMECC_GF_DIMENSION_13
	.comm	_PMECC_GF_13_PRIMITIVE_POLY,4,2 ; @PMECC_GF_13_PRIMITIVE_POLY
	.comm	_PMECC_LOOKUP_TABLE_SIZE_512,4,2 ; @PMECC_LOOKUP_TABLE_SIZE_512
	.comm	_PMECC_GF_DIMENSION_14,4,2      ; @PMECC_GF_DIMENSION_14
	.comm	_PMECC_GF_14_PRIMITIVE_POLY,4,2 ; @PMECC_GF_14_PRIMITIVE_POLY
	.comm	_PMECC_LOOKUP_TABLE_SIZE_1024,4,2 ; @PMECC_LOOKUP_TABLE_SIZE_1024
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_atmel_pmecc_create_gf_tables
.subsections_via_symbols
