	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_do_rx_poll
_m_can_do_rx_poll:                      ## @m_can_do_rx_poll
	.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
	pushq	%rax
	.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	_M_CAN_RXF0S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_m_can_read
	movl	%eax, %ebx
	movq	_RXFS_FFL_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.2:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RXFS_RFL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_m_can_read_fifo
	movq	_M_CAN_RXF0S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_m_can_read
	movl	%eax, %ebx
	leal	-1(%r14), %r13d
	movq	_RXFS_FFL_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r15d, %r14d
	cmpl	$1, %r14d
	movl	%r13d, %r14d
	jg	LBB0_3
LBB0_7:
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_can_led_event
	negl	%r13d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_dbg
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_CAN_RXF0S,4,2                ## @M_CAN_RXF0S
	.comm	_RXFS_FFL_MASK,4,2              ## @RXFS_FFL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no messages in fifo0\n"

	.comm	_RXFS_RFL,4,2                   ## @RXFS_RFL
L_.str.1:                               ## @.str.1
	.asciz	"Rx FIFO 0 Message Lost\n"

	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_m_can_do_rx_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m_can_do_rx_poll
_m_can_do_rx_poll:                      ; @m_can_do_rx_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x24, _M_CAN_RXF0S@GOTPAGE
Lloh1:
	ldr	x24, [x24, _M_CAN_RXF0S@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_m_can_read
Lloh2:
	adrp	x26, _RXFS_FFL_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RXFS_FFL_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x22, x0
	mov	w25, #0
Lloh4:
	adrp	x27, _RXFS_RFL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RXFS_RFL@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w28, w20, w25
	mov	x0, x19
	mov	x1, x22
	bl	_m_can_read_fifo
	ldr	w1, [x24]
	mov	x0, x21
	bl	_m_can_read
	mov	x22, x0
	ldr	w8, [x26]
	and	w8, w8, w0
	sub	w25, w25, #1
	cmp	w8, #0
	ccmp	w28, #1, #4, ne
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_netdev_warn
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
	neg	w0, w25
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
LBB0_8:
	mov	w0, #0
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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_M_CAN_RXF0S,4,2                ; @M_CAN_RXF0S
	.comm	_RXFS_FFL_MASK,4,2              ; @RXFS_FFL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no messages in fifo0\n"

	.comm	_RXFS_RFL,4,2                   ; @RXFS_RFL
l_.str.1:                               ; @.str.1
	.asciz	"Rx FIFO 0 Message Lost\n"

	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.no_dead_strip	_m_can_do_rx_poll
.subsections_via_symbols
