	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcanfd_rx
_xcanfd_rx:                             ## @xcanfd_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	%esi, %r15d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rbx
	movl	%r15d, %edi
	callq	_XCAN_FRAME_ID_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%rbx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rbx
	movl	%r15d, %edi
	callq	_XCAN_FRAME_DLC_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%rbx
	movl	%eax, %r13d
	movq	_XCAN_DLCR_EDL_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_canfd_skb
	jmp	LBB0_3
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_can_skb
LBB0_3:
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incl	8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_5:
	movq	_XCAN_DLCR_DLC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	movq	_XCAN_DLCR_DLC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	movq	_XCAN_DLCR_EDL_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.6:
	callq	_can_dlc2len
	jmp	LBB0_8
LBB0_7:
	callq	_get_can_dlc
LBB0_8:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r8
	movl	%eax, (%r8)
	movq	_XCAN_IDR_IDE_MASK@GOTPCREL(%rip), %rcx
	movq	_XCAN_IDR_ID1_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edx, %esi
	testl	%edx, (%rcx)
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	sarl	$3, %esi
	movq	_XCAN_IDR_ID2_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	%edx, %edi
	movq	_XCAN_IDR_ID2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edi
	orl	%edi, %esi
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, 4(%r8)
	movq	_XCAN_IDR_RTR_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_14
LBB0_13:
	addq	$4, %r8
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, (%r8)
	jmp	LBB0_14
LBB0_10:
	movq	_XCAN_IDR_ID1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movl	%esi, 4(%r8)
	movq	_XCAN_DLCR_EDL_MASK@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_11
LBB0_14:
	movq	_XCAN_DLCR_EDL_MASK@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_18
## %bb.15:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.16:
	xorl	%ebx, %ebx
	movq	_XCANFD_DW_BYTES@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_XCANFD_FRAME_DW_OFFSET
	movl	(%r12), %esi
	imull	%r13d, %esi
	addl	%eax, %esi
	movq	%r14, %rdi
	callq	*(%r14)
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	-56(%rbp), %rcx
	movslq	8(%rcx), %rdx
	movl	%eax, (%rbx,%rdx)
	incl	%r13d
	movl	(%rcx), %eax
	addq	$4, %rbx
	cmpl	%eax, %ebx
	jl	LBB0_17
	jmp	LBB0_21
LBB0_18:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_XCANFD_FRAME_DW_OFFSET
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	*(%r14)
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	-56(%rbp), %rcx
	movslq	8(%rcx), %rdx
	movl	%eax, (%rbx,%rdx)
	movl	(%rcx), %eax
	addq	$4, %rbx
	cmpl	%eax, %ebx
	jl	LBB0_20
LBB0_21:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, 4(%rcx)
	incl	(%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_receive_skb
	movl	$1, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_XCAN_IDR_SRR_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_DLCR_EDL_MASK,4,2         ## @XCAN_DLCR_EDL_MASK
	.comm	_XCAN_DLCR_DLC_MASK,4,2         ## @XCAN_DLCR_DLC_MASK
	.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
	.comm	_XCANFD_DW_BYTES,4,2            ## @XCANFD_DW_BYTES
	.no_dead_strip	_xcanfd_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcanfd_rx
_xcanfd_rx:                             ; @xcanfd_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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x22, [x0]
	mov	x0, x20
	bl	_XCAN_FRAME_ID_OFFSET
	mov	x1, x0
	mov	x0, x21
	blr	x22
	mov	x24, x0
	ldr	x22, [x21]
	mov	x0, x20
	bl	_XCAN_FRAME_DLC_OFFSET
	mov	x1, x0
	mov	x0, x21
	blr	x22
	mov	x23, x0
Lloh0:
	adrp	x25, _XCAN_DLCR_EDL_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _XCAN_DLCR_EDL_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	add	x1, sp, #8
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_alloc_canfd_skb
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_alloc_can_skb
LBB0_3:
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_21
LBB0_5:
	ldr	w8, [x25]
Lloh2:
	adrp	x9, _XCAN_DLCR_DLC_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XCAN_DLCR_DLC_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh5:
	adrp	x10, _XCAN_DLCR_DLC_SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _XCAN_DLCR_DLC_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	asr	w0, w9, w10
	tst	w8, w23
	b.eq	LBB0_7
; %bb.6:
	bl	_can_dlc2len
	b	LBB0_8
LBB0_7:
	bl	_get_can_dlc
LBB0_8:
	ldr	x8, [sp, #8]
	str	w0, [x8]
Lloh8:
	adrp	x9, _XCAN_IDR_IDE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XCAN_IDR_IDE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x9]
Lloh11:
	adrp	x9, _XCAN_IDR_ID1_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XCAN_IDR_ID1_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w9, w9, w24
	tst	w10, w24
	b.eq	LBB0_12
; %bb.9:
Lloh14:
	adrp	x10, _XCAN_IDR_ID2_MASK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _XCAN_IDR_ID2_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	and	w10, w10, w24
Lloh17:
	adrp	x11, _XCAN_IDR_ID2_SHIFT@GOTPAGE
Lloh18:
	ldr	x11, [x11, _XCAN_IDR_ID2_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	asr	w10, w10, w11
	orr	w9, w10, w9, asr #3
Lloh20:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #4]!
Lloh23:
	adrp	x10, _XCAN_IDR_RTR_MASK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _XCAN_IDR_RTR_MASK@GOTPAGEOFF]
LBB0_10:
	ldr	w10, [x10]
	tst	w10, w24
	b.eq	LBB0_13
; %bb.11:
Lloh25:
	adrp	x10, _CAN_RTR_FLAG@GOTPAGE
Lloh26:
	ldr	x10, [x10, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_13
LBB0_12:
Lloh28:
	adrp	x10, _XCAN_IDR_ID1_SHIFT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _XCAN_IDR_ID1_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	asr	w9, w9, w10
	str	w9, [x8, #4]!
	ldr	w10, [x25]
	tst	w10, w23
	b.eq	LBB0_22
LBB0_13:
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_17
; %bb.14:
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x23, #0
	mov	w24, #0
Lloh31:
	adrp	x25, _XCANFD_DW_BYTES@GOTPAGE
Lloh32:
	ldr	x25, [x25, _XCANFD_DW_BYTES@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_XCANFD_FRAME_DW_OFFSET
	ldr	w8, [x25]
	madd	w1, w8, w24, w0
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	bl	_cpu_to_be32
	ldr	x8, [sp, #8]
	ldrsw	x9, [x8, #8]
	str	w0, [x23, x9]
	add	w24, w24, #1
	ldr	w0, [x8]
	add	x23, x23, #4
	cmp	w23, w0
	b.lt	LBB0_16
	b	LBB0_20
LBB0_17:
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x23, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_XCANFD_FRAME_DW_OFFSET
	ldr	x8, [x21]
	add	w1, w23, w0
	mov	x0, x21
	blr	x8
	bl	_cpu_to_be32
	ldr	x8, [sp, #8]
	ldrsw	x9, [x8, #8]
	str	w0, [x23, x9]
	ldr	w0, [x8]
	add	x23, x23, #4
	cmp	w23, w0
	b.lt	LBB0_19
LBB0_20:
	ldp	w9, w8, [x19]
	add	w8, w8, w0
	add	w9, w9, #1
	stp	w9, w8, [x19]
	mov	x0, x22
	bl	_netif_receive_skb
	mov	w0, #1
LBB0_21:
	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_22:
Lloh33:
	adrp	x10, _XCAN_IDR_SRR_MASK@GOTPAGE
Lloh34:
	ldr	x10, [x10, _XCAN_IDR_SRR_MASK@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_DLCR_EDL_MASK,4,2         ; @XCAN_DLCR_EDL_MASK
	.comm	_XCAN_DLCR_DLC_MASK,4,2         ; @XCAN_DLCR_DLC_MASK
	.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
	.comm	_XCANFD_DW_BYTES,4,2            ; @XCANFD_DW_BYTES
	.no_dead_strip	_xcanfd_rx
.subsections_via_symbols
