	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_rx
_xcan_rx:                               ## @xcan_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_can_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incl	8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r13
	movl	%r14d, %edi
	callq	_XCAN_FRAME_ID_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r13
	movl	%eax, %r13d
	movl	%r14d, %edi
	movq	(%r15), %r14
	movl	%edi, %ebx
	callq	_XCAN_FRAME_DLC_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r14
	movq	_XCAN_DLCR_DLC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, %edi
	callq	_get_can_dlc
	movq	-48(%rbp), %rdx
	movl	%eax, (%rdx)
	movq	_XCAN_IDR_IDE_MASK@GOTPCREL(%rip), %rcx
	movq	_XCAN_IDR_ID1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	testl	%r13d, (%rcx)
	je	LBB0_4
## %bb.3:
	sarl	$3, %eax
	movq	_XCAN_IDR_ID2_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r13d, %esi
	movq	_XCAN_IDR_ID2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	orl	%esi, %eax
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rdx)
	movq	_XCAN_IDR_RTR_MASK@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_7
LBB0_6:
	addq	$4, %rdx
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rdx)
LBB0_7:
	movq	(%r15), %r14
	movl	%ebx, %r13d
	movl	%ebx, %edi
	callq	_XCAN_FRAME_DW1_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r14
	movl	%eax, %ebx
	movq	(%r15), %r14
	movl	%r13d, %edi
	callq	_XCAN_FRAME_DW2_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r14
	movl	%eax, %r14d
	movq	-48(%rbp), %rcx
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rcx)
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movl	(%rcx), %eax
	addl	%eax, (%r12)
	incl	4(%r12)
	movq	%rbx, %rdi
	callq	_netif_receive_skb
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_XCAN_IDR_ID1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%rdx)
	movq	_XCAN_IDR_SRR_MASK@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_9:
	movl	%ebx, %edi
	cmpl	$0, (%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_12
## %bb.10:
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, (%rdx)
	cmpl	$5, (%rcx)
	jl	LBB0_12
## %bb.11:
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, 4(%rdx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_DLCR_DLC_SHIFT,4,2        ## @XCAN_DLCR_DLC_SHIFT
	.comm	_XCAN_IDR_IDE_MASK,4,2          ## @XCAN_IDR_IDE_MASK
	.comm	_XCAN_IDR_ID1_MASK,4,2          ## @XCAN_IDR_ID1_MASK
	.comm	_XCAN_IDR_ID2_MASK,4,2          ## @XCAN_IDR_ID2_MASK
	.comm	_XCAN_IDR_ID2_SHIFT,4,2         ## @XCAN_IDR_ID2_SHIFT
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_XCAN_IDR_RTR_MASK,4,2          ## @XCAN_IDR_RTR_MASK
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_XCAN_IDR_ID1_SHIFT,4,2         ## @XCAN_IDR_ID1_SHIFT
	.comm	_XCAN_IDR_SRR_MASK,4,2          ## @XCAN_IDR_SRR_MASK
	.no_dead_strip	_xcan_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_rx
_xcan_rx:                               ; @xcan_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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_skb
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_2:
	ldr	x23, [x22]
	mov	x0, x21
	bl	_XCAN_FRAME_ID_OFFSET
	mov	x1, x0
	mov	x0, x22
	blr	x23
	mov	x23, x0
	ldr	x24, [x22]
	mov	x0, x21
	bl	_XCAN_FRAME_DLC_OFFSET
	mov	x1, x0
	mov	x0, x22
	blr	x24
Lloh0:
	adrp	x8, _XCAN_DLCR_DLC_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCAN_DLCR_DLC_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w0, w0, w8
	bl	_get_can_dlc
	ldr	x8, [sp, #8]
	str	w0, [x8]
Lloh3:
	adrp	x9, _XCAN_IDR_IDE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XCAN_IDR_IDE_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x10, _XCAN_IDR_ID1_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _XCAN_IDR_ID1_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x9]
Lloh8:
	ldr	w9, [x10]
	and	w9, w9, w23
Lloh9:
	adrp	x24, _CAN_RTR_FLAG@GOTPAGE
Lloh10:
	ldr	x24, [x24, _CAN_RTR_FLAG@GOTPAGEOFF]
	tst	w11, w23
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x10, _XCAN_IDR_ID2_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _XCAN_IDR_ID2_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w10, w10, w23
Lloh14:
	adrp	x11, _XCAN_IDR_ID2_SHIFT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _XCAN_IDR_ID2_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	asr	w10, w10, w11
	orr	w9, w10, w9, asr #3
Lloh17:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #4]!
Lloh20:
	adrp	x10, _XCAN_IDR_RTR_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _XCAN_IDR_RTR_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x10, _XCAN_IDR_ID1_SHIFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _XCAN_IDR_ID1_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	asr	w9, w9, w10
	str	w9, [x8, #4]!
Lloh25:
	adrp	x10, _XCAN_IDR_SRR_MASK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _XCAN_IDR_SRR_MASK@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
	tst	w10, w23
	b.eq	LBB0_7
; %bb.6:
	ldr	w10, [x24]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_7:
	ldr	x23, [x22]
	mov	x0, x21
	bl	_XCAN_FRAME_DW1_OFFSET
	mov	x1, x0
	mov	x0, x22
	blr	x23
	mov	x23, x0
	ldr	x25, [x22]
	mov	x0, x21
	bl	_XCAN_FRAME_DW2_OFFSET
	mov	x1, x0
	mov	x0, x22
	blr	x25
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_10
LBB0_8:
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_netif_receive_skb
	mov	w0, #1
LBB0_9:
	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
LBB0_10:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.11:
	mov	x21, x0
	mov	x0, x23
	bl	_cpu_to_be32
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	str	w0, [x9]
	ldr	w9, [x8]
	cmp	w9, #5
	b.lt	LBB0_8
; %bb.12:
	mov	x0, x21
	bl	_cpu_to_be32
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	str	w0, [x9, #4]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_DLCR_DLC_SHIFT,4,2        ; @XCAN_DLCR_DLC_SHIFT
	.comm	_XCAN_IDR_IDE_MASK,4,2          ; @XCAN_IDR_IDE_MASK
	.comm	_XCAN_IDR_ID1_MASK,4,2          ; @XCAN_IDR_ID1_MASK
	.comm	_XCAN_IDR_ID2_MASK,4,2          ; @XCAN_IDR_ID2_MASK
	.comm	_XCAN_IDR_ID2_SHIFT,4,2         ; @XCAN_IDR_ID2_SHIFT
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_XCAN_IDR_RTR_MASK,4,2          ; @XCAN_IDR_RTR_MASK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_XCAN_IDR_ID1_SHIFT,4,2         ; @XCAN_IDR_ID1_SHIFT
	.comm	_XCAN_IDR_SRR_MASK,4,2          ; @XCAN_IDR_SRR_MASK
	.no_dead_strip	_xcan_rx
.subsections_via_symbols
