	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_i2c_irq_thread_fn
_pn544_hci_i2c_irq_thread_fn:           ## @pn544_hci_i2c_irq_thread_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %eax
	movq	32(%rsi), %rdi
	cmpl	%eax, (%rdi)
	jne	LBB0_2
## %bb.3:
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.4:
	movq	8(%rbx), %rax
	movq	_PN544_FW_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_pn544_hci_i2c_fw_read_status
	movl	%eax, 24(%rbx)
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
	jmp	LBB0_12
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_12:
	movl	(%r14), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pn544_hci_i2c_read
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_8
## %bb.7:
	movl	%eax, (%rbx)
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.9:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.10:
	movl	16(%rbx), %edi
	movq	-24(%rbp), %rsi
LBB0_11:
	callq	_nfc_hci_recv_frame
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_PN544_FW_MODE,8,3              ## @PN544_FW_MODE
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_pn544_hci_i2c_irq_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn544_hci_i2c_irq_thread_fn
_pn544_hci_i2c_irq_thread_fn:           ; @pn544_hci_i2c_irq_thread_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #32]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_5
; %bb.2:
	add	x0, x8, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19]
	cbnz	w8, LBB0_12
; %bb.3:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _PN544_FW_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PN544_FW_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_pn544_hci_i2c_fw_read_status
	str	w0, [x19, #24]
	add	x0, x19, #20
	bl	_schedule_work
	b	LBB0_12
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pn544_hci_i2c_read
Lloh7:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.7:
	str	w0, [x19]
	ldr	w0, [x19, #16]
	mov	x1, #0
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.9:
Lloh13:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	w0, [x19, #16]
	ldr	x1, [sp, #8]
LBB0_11:
	bl	_nfc_hci_recv_frame
LBB0_12:
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_PN544_FW_MODE,8,3              ; @PN544_FW_MODE
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_pn544_hci_i2c_irq_thread_fn
.subsections_via_symbols
