	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1000_rx
_sja1000_rx:                            ## @sja1000_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
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_SJA1000_FI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	_SJA1000_FI_FF@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_SJA1000_EFF_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SJA1000_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	shll	$21, %r13d
	movq	_SJA1000_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r14d
	shll	$13, %r14d
	orl	%r13d, %r14d
	movq	_SJA1000_ID3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	shll	$5, %r12d
	movq	_SJA1000_ID4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	sarl	$3, %r13d
	orl	%r12d, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	orl	%r14d, %r13d
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_4
LBB0_3:
	movq	_SJA1000_SFF_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SJA1000_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r14d
	shll	$3, %r14d
	movq	_SJA1000_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	sarl	$5, %r13d
	orl	%r14d, %r13d
LBB0_4:
	movl	%ebx, %edi
	andl	$15, %edi
	callq	_get_can_dlc
	movq	-64(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_SJA1000_FI_RTR@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_5
## %bb.11:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_5:
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_9
## %bb.6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	-64(%rbp), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, (%rdx,%rbx,4)
	incq	%rbx
	movslq	(%rcx), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.8:
	movq	%r12, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	movl	%r13d, 16(%rcx)
	movq	_CMD_RRB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sja1000_write_cmdreg
	incl	4(%rbx)
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_netif_rx
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_can_led_event
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1000_FI,4,2                 ## @SJA1000_FI
	.comm	_SJA1000_FI_FF,4,2              ## @SJA1000_FI_FF
	.comm	_SJA1000_EFF_BUF,4,2            ## @SJA1000_EFF_BUF
	.comm	_SJA1000_ID1,4,2                ## @SJA1000_ID1
	.comm	_SJA1000_ID2,4,2                ## @SJA1000_ID2
	.comm	_SJA1000_ID3,4,2                ## @SJA1000_ID3
	.comm	_SJA1000_ID4,4,2                ## @SJA1000_ID4
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_SJA1000_SFF_BUF,4,2            ## @SJA1000_SFF_BUF
	.comm	_SJA1000_FI_RTR,4,2             ## @SJA1000_FI_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_CMD_RRB,4,2                    ## @CMD_RRB
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_sja1000_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1000_rx
_sja1000_rx:                            ; @sja1000_rx
	.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	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_skb
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _SJA1000_FI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SJA1000_FI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	mov	x22, x0
Lloh3:
	adrp	x8, _SJA1000_FI_FF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SJA1000_FI_FF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _SJA1000_EFF_BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SJA1000_EFF_BUF@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _SJA1000_ID1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SJA1000_ID1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	mov	x23, x0
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _SJA1000_ID2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SJA1000_ID2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	lsl	w8, w0, #13
	orr	w23, w8, w23, lsl #21
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _SJA1000_ID3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SJA1000_ID3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	orr	w23, w23, w0, lsl #5
	ldr	x8, [x21]
Lloh18:
	adrp	x9, _SJA1000_ID4@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SJA1000_ID4@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	orr	w8, w23, w0, asr #3
Lloh21:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w23, w8, w9
	b	LBB0_4
LBB0_3:
Lloh24:
	adrp	x8, _SJA1000_SFF_BUF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SJA1000_SFF_BUF@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
	ldr	x8, [x21]
Lloh27:
	adrp	x9, _SJA1000_ID1@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SJA1000_ID1@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	mov	x23, x0
	ldr	x8, [x21]
Lloh30:
	adrp	x9, _SJA1000_ID2@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SJA1000_ID2@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	asr	w8, w0, #5
	orr	w23, w8, w23, lsl #3
LBB0_4:
	and	w0, w22, #0xf
	bl	_get_can_dlc
	ldr	x8, [sp, #8]
	str	w0, [x8]
Lloh33:
	adrp	x9, _SJA1000_FI_RTR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SJA1000_FI_RTR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_6
; %bb.5:
Lloh36:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w23, w9, w23
	b	LBB0_9
LBB0_6:
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	mov	w24, w24
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w24, w22
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	str	w0, [x9, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.lt	LBB0_8
LBB0_9:
	str	w23, [x8, #16]
Lloh39:
	adrp	x8, _CMD_RRB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CMD_RRB@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sja1000_write_cmdreg
	ldr	x8, [sp, #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_rx
Lloh42:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1000_FI,4,2                 ; @SJA1000_FI
	.comm	_SJA1000_FI_FF,4,2              ; @SJA1000_FI_FF
	.comm	_SJA1000_EFF_BUF,4,2            ; @SJA1000_EFF_BUF
	.comm	_SJA1000_ID1,4,2                ; @SJA1000_ID1
	.comm	_SJA1000_ID2,4,2                ; @SJA1000_ID2
	.comm	_SJA1000_ID3,4,2                ; @SJA1000_ID3
	.comm	_SJA1000_ID4,4,2                ; @SJA1000_ID4
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_SJA1000_SFF_BUF,4,2            ; @SJA1000_SFF_BUF
	.comm	_SJA1000_FI_RTR,4,2             ; @SJA1000_FI_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_CMD_RRB,4,2                    ; @CMD_RRB
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.no_dead_strip	_sja1000_rx
.subsections_via_symbols
