	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_nfc_interrupt
_atmel_nfc_interrupt:                   ## @atmel_nfc_interrupt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	4(%rsi), %edi
	movq	_ATMEL_HSMC_NFC_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	-36(%rbp), %r12d
	leaq	8(%r14), %rdi
	movq	_ATMEL_HSMC_NFC_SR_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	8(%r14), %ebx
	movl	%r12d, %esi
	callq	_atmel_nfc_op_done
	movl	%eax, %r15d
	andl	%r12d, %ebx
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	movq	_ATMEL_HSMC_NFC_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_regmap_write
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_complete
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.6:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_HSMC_NFC_SR,4,2          ## @ATMEL_HSMC_NFC_SR
	.comm	_ATMEL_HSMC_NFC_SR_ERRORS,4,2   ## @ATMEL_HSMC_NFC_SR_ERRORS
	.comm	_ATMEL_HSMC_NFC_IDR,4,2         ## @ATMEL_HSMC_NFC_IDR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_atmel_nfc_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_nfc_interrupt
_atmel_nfc_interrupt:                   ; @atmel_nfc_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	ldr	w0, [x1, #4]
Lloh0:
	adrp	x8, _ATMEL_HSMC_NFC_SR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATMEL_HSMC_NFC_SR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x0, x19
	ldr	w8, [x0, #8]!
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x9, _ATMEL_HSMC_NFC_SR_ERRORS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATMEL_HSMC_NFC_SR_ERRORS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w20, w8, w1
	bl	_atmel_nfc_op_done
	mov	x21, x0
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _ATMEL_HSMC_NFC_IDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATMEL_HSMC_NFC_IDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_regmap_write
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_complete
LBB0_4:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	adrp	x9, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQ_NONE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_HSMC_NFC_SR,4,2          ; @ATMEL_HSMC_NFC_SR
	.comm	_ATMEL_HSMC_NFC_SR_ERRORS,4,2   ; @ATMEL_HSMC_NFC_SR_ERRORS
	.comm	_ATMEL_HSMC_NFC_IDR,4,2         ; @ATMEL_HSMC_NFC_IDR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_atmel_nfc_interrupt
.subsections_via_symbols
