	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pmecc_build_gf_tables
_atmel_pmecc_build_gf_tables:           ## @atmel_pmecc_build_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_deg
	movl	%eax, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %edx
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	movq	(%r15), %r8
	movq	8(%r15), %r9
	decl	%edx
	je	LBB0_2
## %bb.3:
	movl	%edx, %edx
	movl	$1, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%edi, %edi
	movl	%edi, %esi
	andl	%ebx, %esi
	cmovnel	%r14d, %esi
	xorl	%esi, %edi
	incq	%rcx
	cmpq	%rcx, %rdx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%r8,%rcx,4)
	movl	%edi, %esi
	movl	%ecx, (%r9,%rsi,4)
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %edi
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	xorl	%edx, %edx
LBB0_8:
	movl	$1, (%r8,%rdx,4)
	movl	$0, (%r9)
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_atmel_pmecc_build_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_build_gf_tables
_atmel_pmecc_build_gf_tables:           ; @atmel_pmecc_build_gf_tables
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_deg
	bl	_BIT
	mov	x20, x0
	mov	x0, x22
	bl	_BIT
	mov	w8, #1
	lsl	w8, w8, w22
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.1:
	ldp	x8, x9, [x21]
	sub	w10, w0, #1
	cbz	w10, LBB0_7
; %bb.2:
	mov	x11, #0
	mov	w12, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w12, w12, #1
	tst	w12, w20
	csel	w13, wzr, w19, eq
	eor	w12, w13, w12
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w12, [x8, x11, lsl #2]
	str	w11, [x9, w12, uxtw #2]
	cbz	x11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w12, #1
	b.ne	LBB0_3
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x10, #0
LBB0_8:
	mov	w0, #0
	mov	w11, #1
	str	w11, [x8, x10, lsl #2]
	str	wzr, [x9]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_atmel_pmecc_build_gf_tables
.subsections_via_symbols
