	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar934x_nfc_irq_handler
_ar934x_nfc_irq_handler:                ## @ar934x_nfc_irq_handler
	.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	%rsi, %rbx
	movq	_AR934X_NFC_REG_INT_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ar934x_nfc_rr
	movl	%eax, %r15d
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ar934x_nfc_wr
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ar934x_nfc_rr
	movq	_AR934X_NFC_REG_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ar934x_nfc_rr
	movl	%eax, %r14d
	andl	%r15d, %r14d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_nfc_dbg
	movl	%r14d, (%rbx)
	movl	$1, 4(%rbx)
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	jmp	LBB0_5
LBB0_2:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.3:
	movl	$0, 4(%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR934X_NFC_REG_INT_STATUS,4,2  ## @AR934X_NFC_REG_INT_STATUS
	.comm	_AR934X_NFC_REG_INT_MASK,4,2    ## @AR934X_NFC_REG_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got IRQ, status:%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"spurious interrupt\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ar934x_nfc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar934x_nfc_irq_handler
_ar934x_nfc_irq_handler:                ; @ar934x_nfc_irq_handler
	.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	x19, x1
Lloh0:
	adrp	x21, _AR934X_NFC_REG_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR934X_NFC_REG_INT_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ar934x_nfc_rr
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_ar934x_nfc_wr
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ar934x_nfc_rr
Lloh2:
	adrp	x8, _AR934X_NFC_REG_INT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR934X_NFC_REG_INT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ar934x_nfc_rr
	ands	w20, w0, w20
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nfc_dbg
	mov	w8, #1
	stp	w20, w8, [x19]
	add	x0, x19, #12
	bl	_wake_up
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.3:
	str	wzr, [x19, #4]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_5:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AR934X_NFC_REG_INT_STATUS,4,2  ; @AR934X_NFC_REG_INT_STATUS
	.comm	_AR934X_NFC_REG_INT_MASK,4,2    ; @AR934X_NFC_REG_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got IRQ, status:%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"spurious interrupt\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ar934x_nfc_irq_handler
.subsections_via_symbols
