	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc770_rx
_cc770_rx:                              ## @cc770_rx
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_msgobj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %r14d
	leaq	(%r14,%r14,2), %r12
	movl	16(%rax,%r12,8), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movq	_RMTPND_SET@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rsi
	movl	%ecx, (%rsi)
	movq	_MSGCFG_XTD@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rsi)
LBB0_4:
	movl	$0, 4(%rsi)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	movq	_MSGCFG_XTD@GOTPCREL(%rip), %rcx
	movq	_msgobj@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	8(%rdx,%r12,8), %rdx
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	12(%rdx), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	shlq	$3, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r14,2), %rbx
	movq	8(%rax,%rbx), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movq	%r13, %rcx
	movl	%eax, %r13d
	shll	$8, %r13d
	orl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	movq	(%rcx), %rax
	movq	8(%rax,%rbx), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movl	%eax, %r14d
	shll	$16, %r14d
	movq	_msgobj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%rbx), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	shll	$24, %eax
	orl	%r14d, %eax
	orl	%r13d, %eax
	sarl	$3, %eax
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movl	4(%rdx), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movq	%r13, %rcx
	movl	%eax, %r13d
	movq	(%rcx), %rax
	movq	8(%rax,%r12,8), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	shll	$8, %eax
	orl	%r13d, %eax
	sarl	$5, %eax
LBB0_8:
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	shrl	$4, %edi
	andl	$15, %edi
	callq	_get_can_dlc
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.9:
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	movq	_msgobj@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, (%rdx,%rbx,4)
	incq	%rbx
	movslq	4(%rcx), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
## %bb.11:
	movq	%r14, %rbx
LBB0_12:
	incl	4(%rbx)
	addl	%eax, (%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_rx
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msgobj,8,3                     ## @msgobj
	.comm	_RMTPND_SET,4,2                 ## @RMTPND_SET
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_MSGCFG_XTD,4,2                 ## @MSGCFG_XTD
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.no_dead_strip	_cc770_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc770_rx
_cc770_rx:                              ; @cc770_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_skb
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x25, _msgobj@GOTPAGE
Lloh1:
	ldr	x25, [x25, _msgobj@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	w9, #24
	umaddl	x8, w23, w9, x8
	ldr	w1, [x8, #16]
	mov	x0, x21
	bl	_cc770_read_reg
	mov	x22, x0
Lloh2:
	adrp	x8, _RMTPND_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RMTPND_SET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _CAN_RTR_FLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	str	w9, [x8]
Lloh8:
	adrp	x10, _MSGCFG_XTD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MSGCFG_XTD@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w22
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_4:
	mov	w0, #0
	str	wzr, [x8, #4]
	b	LBB0_11
LBB0_5:
	mov	w24, w23
Lloh14:
	adrp	x8, _MSGCFG_XTD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSGCFG_XTD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
	ldr	x8, [x25]
	mov	w10, #24
	madd	x8, x24, x10, x8
	ldr	x8, [x8, #8]
	tst	w9, w22
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x8, #12]
	mov	x0, x21
	bl	_cc770_read_reg
	mov	x23, x0
	ldr	x8, [x25]
	add	x9, x24, x24, lsl #1
	lsl	x26, x9, #3
	add	x8, x8, x26
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_cc770_read_reg
	orr	w23, w23, w0, lsl #8
	ldr	x8, [x25]
	add	x8, x8, x26
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_cc770_read_reg
	orr	w23, w23, w0, lsl #16
	ldr	x8, [x25]
	add	x8, x8, x26
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cc770_read_reg
	orr	w8, w23, w0, lsl #24
Lloh17:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8, asr #3
	b	LBB0_8
LBB0_7:
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_cc770_read_reg
	mov	x23, x0
	ldr	x8, [x25]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cc770_read_reg
	orr	w8, w23, w0, lsl #8
	asr	w8, w8, #5
LBB0_8:
	ldr	x9, [sp, #8]
	str	w8, [x9]
	ubfx	w0, w22, #4, #4
	bl	_get_can_dlc
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #8]
	str	w0, [x8, #4]
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
	mov	w8, #24
	mul	x23, x24, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8, x23]
	lsl	x24, x22, #2
	ldr	w1, [x8, x24]
	mov	x0, x21
	bl	_cc770_read_reg
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	str	w0, [x9, x24]
	add	x22, x22, #1
	ldrsw	x0, [x8, #4]
	cmp	x22, x0
	b.lt	LBB0_10
LBB0_11:
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w0
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_netif_rx
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_msgobj,8,3                     ; @msgobj
	.comm	_RMTPND_SET,4,2                 ; @RMTPND_SET
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_MSGCFG_XTD,4,2                 ; @MSGCFG_XTD
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.no_dead_strip	_cc770_rx
.subsections_via_symbols
