	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_can_rx_pkt
_rcar_can_rx_pkt:                       ## @rcar_can_rx_pkt
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_RCAR_CAN_RX_FIFO_MBX@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$12, %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_RCAR_CAN_IDE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	incl	8(%r15)
	jmp	LBB0_10
LBB0_4:
	movq	_RCAR_CAN_SID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r12d, %eax
	sarl	%cl, %eax
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_5:
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	callq	_readb
	movq	%rax, %rdi
	callq	_get_can_dlc
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	_RCAR_CAN_RTR@GOTPCREL(%rip), %rdx
	testl	%r12d, (%rdx)
	je	LBB0_6
## %bb.11:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	addq	%r12, %rdi
	callq	_readb
	movq	-48(%rbp), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	-48(%rbp), %rax
	addq	$4, %r12
	cmpq	8(%rax), %rbx
	jb	LBB0_8
LBB0_9:
	movq	(%r14), %rdi
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_can_led_event
	movq	-48(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, 4(%r15)
	incl	(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_receive_skb
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_CAN_RX_FIFO_MBX,8,3       ## @RCAR_CAN_RX_FIFO_MBX
	.comm	_RCAR_CAN_IDE,4,2               ## @RCAR_CAN_IDE
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_RCAR_CAN_SID_SHIFT,4,2         ## @RCAR_CAN_SID_SHIFT
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_RCAR_CAN_RTR,4,2               ## @RCAR_CAN_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_rcar_can_rx_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_can_rx_pkt
_rcar_can_rx_pkt:                       ; @rcar_can_rx_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	ldr	x19, [x0]
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _RCAR_CAN_RX_FIFO_MBX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RCAR_CAN_RX_FIFO_MBX@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	add	x0, x8, #12
	bl	_readl
	mov	x22, x0
Lloh2:
	adrp	x8, _RCAR_CAN_IDE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCAR_CAN_IDE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _CAN_EFF_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh8:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _RCAR_CAN_SID_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RCAR_CAN_SID_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	asr	w8, w22, w8
Lloh14:
	adrp	x9, _CAN_SFF_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w8, w8, w9
LBB0_5:
	ldr	x9, [sp, #8]
	str	w8, [x9]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	add	x0, x8, #8
	bl	_readb
	bl	_get_can_dlc
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
Lloh17:
	adrp	x9, _RCAR_CAN_RTR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RCAR_CAN_RTR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_10
LBB0_7:
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, #0
	mov	x24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	add	x0, x8, x22
	bl	_readb
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	add	x22, x22, #4
	cmp	x24, x8
	b.lo	LBB0_9
LBB0_10:
	ldr	x0, [x21]
Lloh23:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_can_led_event
	ldr	x8, [sp, #8]
	ldr	w8, [x8, #8]
	ldp	w10, w9, [x19]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19]
	mov	x0, x20
	bl	_netif_receive_skb
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_CAN_RX_FIFO_MBX,8,3       ; @RCAR_CAN_RX_FIFO_MBX
	.comm	_RCAR_CAN_IDE,4,2               ; @RCAR_CAN_IDE
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_RCAR_CAN_SID_SHIFT,4,2         ; @RCAR_CAN_SID_SHIFT
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_RCAR_CAN_RTR,4,2               ; @RCAR_CAN_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.no_dead_strip	_rcar_can_rx_pkt
.subsections_via_symbols
