	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_irq_thread_fn
_st21nfca_hci_irq_thread_fn:            ## @st21nfca_hci_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %eax
	movq	40(%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), %r15
	cmpl	$0, (%rbx)
	jne	LBB0_17
## %bb.4:
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_st21nfca_hci_i2c_read
	movl	%eax, %r14d
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, (%rbx)
LBB0_16:
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_nfc_hci_recv_frame
	jmp	LBB0_17
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_17:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_17
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_17
## %bb.8:
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_12
## %bb.9:
	movq	8(%rbx), %r13
	movq	_wait_tab@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r13
	jae	LBB0_12
## %bb.10:
	movq	(%r12), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_msleep
	incq	8(%rbx)
	movq	$0, 32(%rbx)
	jmp	LBB0_11
LBB0_12:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.13:
	movl	16(%rbx), %edi
	movq	24(%rbx), %rsi
	callq	_nfc_hci_recv_frame
	movq	$0, 8(%rbx)
	jmp	LBB0_14
LBB0_11:
	movq	24(%rbx), %rdi
	callq	_kfree_skb
LBB0_14:
	movq	_ST21NFCA_HCI_LLC_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_16
	.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	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_wait_tab,8,3                   ## @wait_tab
	.comm	_ST21NFCA_HCI_LLC_MAX_SIZE,4,2  ## @ST21NFCA_HCI_LLC_MAX_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_st21nfca_hci_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 st21nfca_hci_irq_thread_fn
_st21nfca_hci_irq_thread_fn:            ; @st21nfca_hci_irq_thread_fn
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #40]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_6
; %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_16
; %bb.3:
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_st21nfca_hci_i2c_read
	mov	x20, x0
Lloh2:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.4:
	str	w20, [x19]
LBB0_5:
	ldr	w0, [x19, #16]
	mov	x1, #0
	bl	_nfc_hci_recv_frame
	b	LBB0_16
LBB0_6:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_17
LBB0_7:
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w20, w8
	b.eq	LBB0_16
; %bb.8:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w20, w8
	b.eq	LBB0_16
; %bb.9:
Lloh13:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_12
; %bb.10:
	ldr	x22, [x19, #8]
Lloh16:
	adrp	x21, _wait_tab@GOTPAGE
Lloh17:
	ldr	x21, [x21, _wait_tab@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.hs	LBB0_12
; %bb.11:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	str	xzr, [x19, #32]
	b	LBB0_14
LBB0_12:
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.13:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #24]
	bl	_nfc_hci_recv_frame
	str	xzr, [x19, #8]
	b	LBB0_15
LBB0_14:
	ldr	x0, [x19, #24]
	bl	_kfree_skb
LBB0_15:
Lloh18:
	adrp	x8, _ST21NFCA_HCI_LLC_MAX_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ST21NFCA_HCI_LLC_MAX_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	w0, w8, #1
Lloh21:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_alloc_skb
	str	x0, [x19, #24]
	cbz	x0, LBB0_18
LBB0_16:
Lloh24:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_17:
	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
LBB0_18:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	b	LBB0_5
	.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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_wait_tab,8,3                   ; @wait_tab
	.comm	_ST21NFCA_HCI_LLC_MAX_SIZE,4,2  ; @ST21NFCA_HCI_LLC_MAX_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_st21nfca_hci_irq_thread_fn
.subsections_via_symbols
