	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_read_fifo
_m_can_read_fifo:                       ## @m_can_read_fifo
	.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, %rbx
	callq	_netdev_priv
	movq	_RXFS_FGI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	movq	_RXFS_FGI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r14d
	movq	%rax, %r15
	movq	_M_CAN_FIFO_DLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_m_can_fifo_read
	movl	%eax, %r13d
	movq	_RX_BUF_FDF@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_canfd_skb
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movl	%r13d, %edi
	shrl	$16, %edi
	andl	$15, %edi
	testl	%r13d, (%r12)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.6:
	callq	_can_dlc2len
	jmp	LBB0_8
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_can_skb
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	incl	8(%rbx)
	jmp	LBB0_23
LBB0_7:
	callq	_get_can_dlc
LBB0_8:
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_M_CAN_FIFO_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_m_can_fifo_read
	movl	%eax, %r12d
	movq	_RX_BUF_XTD@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.9:
	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_11
LBB0_10:
	movl	%r12d, %eax
	sarl	$18, %eax
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_11:
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	_RX_BUF_ESI@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_CANFD_ESI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rcx)
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_dbg
LBB0_13:
	movq	_RX_BUF_FDF@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_14
LBB0_16:
	movq	_RX_BUF_BRS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_17
## %bb.18:
	movq	_CANFD_BRS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	orl	%ecx, 16(%rax)
	cmpl	$0, (%rax)
	jg	LBB0_20
	jmp	LBB0_22
LBB0_14:
	movq	_RX_BUF_RTR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.15:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 4(%rcx)
	jmp	LBB0_22
LBB0_17:
	movq	-48(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_22
LBB0_20:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_M_CAN_FIFO_DATA
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_m_can_fifo_read
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, (%rbx,%rdx)
	addq	$4, %rbx
	incl	%r12d
	cmpl	%ebx, (%rcx)
	jg	LBB0_21
LBB0_22:
	movq	_M_CAN_RXF0A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_m_can_write
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	4(%rcx)
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_receive_skb
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXFS_FGI_MASK,4,2              ## @RXFS_FGI_MASK
	.comm	_RXFS_FGI_SHIFT,4,2             ## @RXFS_FGI_SHIFT
	.comm	_M_CAN_FIFO_DLC,4,2             ## @M_CAN_FIFO_DLC
	.comm	_RX_BUF_FDF,4,2                 ## @RX_BUF_FDF
	.comm	_M_CAN_FIFO_ID,4,2              ## @M_CAN_FIFO_ID
	.comm	_RX_BUF_XTD,4,2                 ## @RX_BUF_XTD
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_RX_BUF_ESI,4,2                 ## @RX_BUF_ESI
	.comm	_CANFD_ESI,4,2                  ## @CANFD_ESI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ESI Error\n"

	.comm	_RX_BUF_RTR,4,2                 ## @RX_BUF_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_RX_BUF_BRS,4,2                 ## @RX_BUF_BRS
	.comm	_CANFD_BRS,4,2                  ## @CANFD_BRS
	.comm	_M_CAN_RXF0A,4,2                ## @M_CAN_RXF0A
	.no_dead_strip	_m_can_read_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m_can_read_fifo
_m_can_read_fifo:                       ; @m_can_read_fifo
	.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	x20, x0
Lloh0:
	adrp	x8, _RXFS_FGI_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXFS_FGI_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RXFS_FGI_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RXFS_FGI_SHIFT@GOTPAGEOFF]
	and	w8, w8, w21
Lloh5:
	ldr	w9, [x9]
	asr	w21, w8, w9
Lloh6:
	adrp	x8, _M_CAN_FIFO_DLC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_CAN_FIFO_DLC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_m_can_fifo_read
	mov	x23, x0
Lloh9:
	adrp	x25, _RX_BUF_FDF@GOTPAGE
Lloh10:
	ldr	x25, [x25, _RX_BUF_FDF@GOTPAGEOFF]
	ldr	w8, [x25]
	add	x1, sp, #8
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_alloc_canfd_skb
	mov	x22, x0
	cbz	x0, LBB0_5
LBB0_2:
	ldr	w8, [x25]
	ubfx	w0, w23, #16, #4
	tst	w8, w23
	b.eq	LBB0_6
; %bb.3:
	bl	_can_dlc2len
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_alloc_can_skb
	mov	x22, x0
	cbnz	x0, LBB0_2
LBB0_5:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_22
LBB0_6:
	bl	_get_can_dlc
LBB0_7:
	ldr	x8, [sp, #8]
	str	w0, [x8]
Lloh11:
	adrp	x8, _M_CAN_FIFO_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_CAN_FIFO_ID@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_m_can_fifo_read
	mov	x24, x0
Lloh14:
	adrp	x8, _RX_BUF_XTD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_BUF_XTD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _CAN_EFF_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh20:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w9, w8, w9
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _CAN_SFF_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	and	w9, w8, w24, asr #18
LBB0_10:
	ldr	x8, [sp, #8]
	str	w9, [x8, #4]
Lloh26:
	adrp	x9, _RX_BUF_ESI@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RX_BUF_ESI@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_12
; %bb.11:
Lloh29:
	adrp	x9, _CANFD_ESI@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CANFD_ESI@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x8, #16]
	orr	w9, w10, w9
	str	w9, [x8, #16]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
LBB0_12:
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_15
LBB0_13:
Lloh34:
	adrp	x8, _RX_BUF_BRS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RX_BUF_BRS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_17
; %bb.14:
Lloh37:
	adrp	x8, _CANFD_BRS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CANFD_BRS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #16]
	orr	w9, w10, w9
	str	w9, [x8, #16]
	b	LBB0_18
LBB0_15:
Lloh40:
	adrp	x8, _RX_BUF_RTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RX_BUF_RTR@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_13
; %bb.16:
Lloh43:
	adrp	x8, _CAN_RTR_FLAG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	b	LBB0_21
LBB0_17:
	ldr	x8, [sp, #8]
LBB0_18:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	w23, #0
	mov	x24, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_M_CAN_FIFO_DATA
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_m_can_fifo_read
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	str	w0, [x24, x9]
	add	x24, x24, #4
	ldr	w8, [x8]
	add	w23, w23, #1
	cmp	w8, w24
	b.gt	LBB0_20
LBB0_21:
Lloh46:
	adrp	x8, _M_CAN_RXF0A@GOTPAGE
Lloh47:
	ldr	x8, [x8, _M_CAN_RXF0A@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_m_can_write
	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, x22
	bl	_netif_receive_skb
LBB0_22:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_RXFS_FGI_MASK,4,2              ; @RXFS_FGI_MASK
	.comm	_RXFS_FGI_SHIFT,4,2             ; @RXFS_FGI_SHIFT
	.comm	_M_CAN_FIFO_DLC,4,2             ; @M_CAN_FIFO_DLC
	.comm	_RX_BUF_FDF,4,2                 ; @RX_BUF_FDF
	.comm	_M_CAN_FIFO_ID,4,2              ; @M_CAN_FIFO_ID
	.comm	_RX_BUF_XTD,4,2                 ; @RX_BUF_XTD
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_RX_BUF_ESI,4,2                 ; @RX_BUF_ESI
	.comm	_CANFD_ESI,4,2                  ; @CANFD_ESI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ESI Error\n"

	.comm	_RX_BUF_RTR,4,2                 ; @RX_BUF_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_RX_BUF_BRS,4,2                 ; @RX_BUF_BRS
	.comm	_CANFD_BRS,4,2                  ; @CANFD_BRS
	.comm	_M_CAN_RXF0A,4,2                ; @M_CAN_RXF0A
	.no_dead_strip	_m_can_read_fifo
.subsections_via_symbols
