	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_rx_done
_ca8210_rx_done:                        ## @ca8210_rx_done
	.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	(%rdi), %r15
	movq	8(%rdi), %r14
	movl	4(%r15), %ebx
	addl	$2, %ebx
	movq	_CA8210_SPI_BUF_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jbe	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_crit                       ## TAILCALL
LBB0_2:
	movq	_SPI_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	28(%r14), %rdi
	callq	_complete
	jmp	LBB0_7
LBB0_5:
	movq	8(%r14), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_cascoda_api_upstream
	jmp	LBB0_7
LBB0_6:
	movq	8(%r14), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_cascoda_api_upstream
	incl	24(%r14)
LBB0_7:
	movl	20(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_ca8210_net_rx
	movl	(%r15), %eax
	movq	_SPI_MCPS_DATA_CONFIRM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:
	movl	12(%r15), %eax
	movq	_MAC_TRANSACTION_OVERFLOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.9:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msleep
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %rbx
	movq	_ca8210_mlme_reset_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r14, 8(%rbx)
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_11:
	movq	_SPI_HWME_WAKEUP_INDICATION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.12:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_notice
	movl	8(%r15), %eax
	cmpq	$6, %rax
	ja	LBB0_16
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movq	8(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_23
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	8(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_24
LBB0_17:
	movq	8(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_23
LBB0_18:
	movq	8(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_23
LBB0_19:
	movq	8(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_23
LBB0_20:
	movq	8(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_23
LBB0_21:
	movq	8(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_23
LBB0_22:
	movq	8(%r14), %rdi
	leaq	L_.str.10(%rip), %rsi
LBB0_23:
	callq	_dev_notice
LBB0_24:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_CA8210_SPI_BUF_SIZE,4,2        ## @CA8210_SPI_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received packet len (%u) erroneously long\n"

	.comm	_SPI_SYN,4,2                    ## @SPI_SYN
	.comm	_SPI_MCPS_DATA_CONFIRM,4,2      ## @SPI_MCPS_DATA_CONFIRM
	.comm	_MAC_TRANSACTION_OVERFLOW,4,2   ## @MAC_TRANSACTION_OVERFLOW
L_.str.1:                               ## @.str.1
	.asciz	"Waiting for transaction overflow to stabilise...\n"

L_.str.2:                               ## @.str.2
	.asciz	"Resetting MAC...\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ca8210_mlme_reset_worker,4,2   ## @ca8210_mlme_reset_worker
	.comm	_SPI_HWME_WAKEUP_INDICATION,4,2 ## @SPI_HWME_WAKEUP_INDICATION
L_.str.3:                               ## @.str.3
	.asciz	"Wakeup indication received, reason:\n"

L_.str.4:                               ## @.str.4
	.asciz	"Transceiver woken up from Power Up / System Reset\n"

L_.str.5:                               ## @.str.5
	.asciz	"Watchdog Timer Time-Out\n"

L_.str.6:                               ## @.str.6
	.asciz	"Transceiver woken up from Power-Off by Sleep Timer Time-Out\n"

L_.str.7:                               ## @.str.7
	.asciz	"Transceiver woken up from Power-Off by GPIO Activity\n"

L_.str.8:                               ## @.str.8
	.asciz	"Transceiver woken up from Standby by Sleep Timer Time-Out\n"

L_.str.9:                               ## @.str.9
	.asciz	"Transceiver woken up from Standby by GPIO Activity\n"

L_.str.10:                              ## @.str.10
	.asciz	"Sleep-Timer Time-Out in Active Mode\n"

L_.str.11:                              ## @.str.11
	.asciz	"Wakeup reason unknown\n"

	.no_dead_strip	_ca8210_rx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_rx_done
_ca8210_rx_done:                        ; @ca8210_rx_done
	.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
	ldp	x20, x19, [x0]
	ldr	w8, [x20, #4]
	add	w21, w8, #2
Lloh0:
	adrp	x8, _CA8210_SPI_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CA8210_SPI_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	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
	b	_dev_crit
LBB0_2:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _SPI_SYN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPI_SYN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	add	x0, x19, #28
	bl	_complete
	b	LBB0_7
LBB0_5:
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_cascoda_api_upstream
	b	LBB0_7
LBB0_6:
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_cascoda_api_upstream
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_7:
	ldr	w0, [x19, #20]
	mov	x1, x20
	mov	x2, x21
	bl	_ca8210_net_rx
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _SPI_MCPS_DATA_CONFIRM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPI_MCPS_DATA_CONFIRM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x20, #12]
Lloh11:
	adrp	x9, _MAC_TRANSACTION_OVERFLOW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAC_TRANSACTION_OVERFLOW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.9:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w0, #2000
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_15
; %bb.10:
	mov	x20, x0
Lloh21:
	adrp	x8, _ca8210_mlme_reset_worker@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ca8210_mlme_reset_worker@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	x19, [x20, #8]
	ldr	w0, [x19, #16]
	mov	x1, x20
	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
	b	_queue_work
LBB0_11:
Lloh24:
	adrp	x9, _SPI_HWME_WAKEUP_INDICATION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SPI_HWME_WAKEUP_INDICATION@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.12:
	ldr	x0, [x19, #8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_notice
	ldr	w8, [x20, #8]
	cmp	w8, #6
	b.hi	LBB0_16
; %bb.13:
Lloh29:
	adrp	x9, lJTI0_0@PAGE
Lloh30:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	ldr	x0, [x19, #8]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_15:
	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_16:
	ldr	x0, [x19, #8]
Lloh33:
	adrp	x1, l_.str.11@PAGE
Lloh34:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_warn
	b	LBB0_24
LBB0_17:
	ldr	x0, [x19, #8]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_18:
	ldr	x0, [x19, #8]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_19:
	ldr	x0, [x19, #8]
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_23
LBB0_20:
	ldr	x0, [x19, #8]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_21:
	ldr	x0, [x19, #8]
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_23
LBB0_22:
	ldr	x0, [x19, #8]
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_23:
	bl	_dev_notice
LBB0_24:
	mov	x0, x19
	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
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_19-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
                                        ; -- End function
	.comm	_CA8210_SPI_BUF_SIZE,4,2        ; @CA8210_SPI_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received packet len (%u) erroneously long\n"

	.comm	_SPI_SYN,4,2                    ; @SPI_SYN
	.comm	_SPI_MCPS_DATA_CONFIRM,4,2      ; @SPI_MCPS_DATA_CONFIRM
	.comm	_MAC_TRANSACTION_OVERFLOW,4,2   ; @MAC_TRANSACTION_OVERFLOW
l_.str.1:                               ; @.str.1
	.asciz	"Waiting for transaction overflow to stabilise...\n"

l_.str.2:                               ; @.str.2
	.asciz	"Resetting MAC...\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ca8210_mlme_reset_worker,4,2   ; @ca8210_mlme_reset_worker
	.comm	_SPI_HWME_WAKEUP_INDICATION,4,2 ; @SPI_HWME_WAKEUP_INDICATION
l_.str.3:                               ; @.str.3
	.asciz	"Wakeup indication received, reason:\n"

l_.str.4:                               ; @.str.4
	.asciz	"Transceiver woken up from Power Up / System Reset\n"

l_.str.5:                               ; @.str.5
	.asciz	"Watchdog Timer Time-Out\n"

l_.str.6:                               ; @.str.6
	.asciz	"Transceiver woken up from Power-Off by Sleep Timer Time-Out\n"

l_.str.7:                               ; @.str.7
	.asciz	"Transceiver woken up from Power-Off by GPIO Activity\n"

l_.str.8:                               ; @.str.8
	.asciz	"Transceiver woken up from Standby by Sleep Timer Time-Out\n"

l_.str.9:                               ; @.str.9
	.asciz	"Transceiver woken up from Standby by GPIO Activity\n"

l_.str.10:                              ; @.str.10
	.asciz	"Sleep-Timer Time-Out in Active Mode\n"

l_.str.11:                              ; @.str.11
	.asciz	"Wakeup reason unknown\n"

	.no_dead_strip	_ca8210_rx_done
.subsections_via_symbols
