	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pmecc_get_gf_tables
_atmel_pmecc_get_gf_tables:             ## @atmel_pmecc_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_pmecc_gf_tables_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpl	$512, (%r14)                    ## imm = 0x200
	jne	LBB0_1
## %bb.2:
	movq	_pmecc_gf_tables_512@GOTPCREL(%rip), %r15
	jmp	LBB0_3
LBB0_1:
	movq	_pmecc_gf_tables_1024@GOTPCREL(%rip), %r15
LBB0_3:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_atmel_pmecc_create_gf_tables
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, (%r15)
LBB0_6:
	movq	_pmecc_gf_tables_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmecc_gf_tables_lock,4,2       ## @pmecc_gf_tables_lock
	.comm	_pmecc_gf_tables_512,8,3        ## @pmecc_gf_tables_512
	.comm	_pmecc_gf_tables_1024,8,3       ## @pmecc_gf_tables_1024
	.no_dead_strip	_atmel_pmecc_get_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_get_gf_tables
_atmel_pmecc_get_gf_tables:             ; @atmel_pmecc_get_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	x20, x0
Lloh0:
	adrp	x0, _pmecc_gf_tables_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pmecc_gf_tables_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _pmecc_gf_tables_1024@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pmecc_gf_tables_1024@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	adrp	x10, _pmecc_gf_tables_512@GOTPAGE
Lloh5:
	ldr	x10, [x10, _pmecc_gf_tables_512@GOTPAGEOFF]
	cmp	w9, #512
	csel	x21, x10, x8, eq
	ldr	x19, [x21]
	cbnz	x19, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_atmel_pmecc_create_gf_tables
	mov	x19, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_3
; %bb.2:
	str	x19, [x21]
LBB0_3:
Lloh6:
	adrp	x0, _pmecc_gf_tables_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pmecc_gf_tables_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pmecc_gf_tables_lock,4,2       ; @pmecc_gf_tables_lock
	.comm	_pmecc_gf_tables_512,8,3        ; @pmecc_gf_tables_512
	.comm	_pmecc_gf_tables_1024,8,3       ; @pmecc_gf_tables_1024
	.no_dead_strip	_atmel_pmecc_get_gf_tables
.subsections_via_symbols
