	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcmrvl_spi_int_irq_thread_fn
_nfcmrvl_spi_int_irq_thread_fn:         ## @nfcmrvl_spi_int_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_SPI_WAIT_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$20, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_complete
	jmp	LBB0_7
LBB0_2:
	movl	12(%rbx), %edi
	callq	_nci_spi_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	8(%rbx), %edi
	movq	%rax, %rsi
	callq	_nfcmrvl_nci_recv_frame
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_6:
	callq	_nfc_err
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_WAIT_HANDSHAKE,4,2         ## @SPI_WAIT_HANDSHAKE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read spi packet"

L_.str.1:                               ## @.str.1
	.asciz	"corrupted RX packet"

	.no_dead_strip	_nfcmrvl_spi_int_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 nfcmrvl_spi_int_irq_thread_fn
_nfcmrvl_spi_int_irq_thread_fn:         ; @nfcmrvl_spi_int_irq_thread_fn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _SPI_WAIT_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_WAIT_HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x1, #20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #16
	bl	_complete
	b	LBB0_7
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_nci_spi_read
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	ldr	w0, [x19, #8]
	bl	_nfcmrvl_nci_recv_frame
	tbz	x0, #63, LBB0_7
; %bb.4:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	_nfc_err
LBB0_7:
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_WAIT_HANDSHAKE,4,2         ; @SPI_WAIT_HANDSHAKE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read spi packet"

l_.str.1:                               ; @.str.1
	.asciz	"corrupted RX packet"

	.no_dead_strip	_nfcmrvl_spi_int_irq_thread_fn
.subsections_via_symbols
