	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_do_rx_poll
_c_can_do_rx_poll:                      ## @c_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, %r13d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_C_CAN_MSG_OBJ_RX_LAST@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$17, (%rax)
	setge	%dil
	leaq	L_.str(%rip), %rsi
	callq	_BUILD_BUG_ON_MSG
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	notl	%eax
	andl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %ecx
	callq	_c_can_read_objects
	addl	%eax, %r15d
	subl	%eax, %r13d
	jle	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_c_can_get_pending
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_c_can_adjust_pending
	movl	%eax, %edx
	jmp	LBB0_2
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_can_led_event
	jmp	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_CAN_MSG_OBJ_RX_LAST,4,2      ## @C_CAN_MSG_OBJ_RX_LAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Implementation does not support more message objects than 16"

	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_c_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 c_can_do_rx_poll
_c_can_do_rx_poll:                      ; @c_can_do_rx_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _C_CAN_MSG_OBJ_RX_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_CAN_MSG_OBJ_RX_LAST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #16
	cset	w0, gt
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BUILD_BUG_ON_MSG
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w23, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bic	w23, w23, w2
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	bl	_c_can_read_objects
	add	w21, w0, w21
	sub	w20, w20, w0
	cmp	w20, #0
	b.le	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, x23
	cbnz	w23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_c_can_get_pending
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	bl	_c_can_adjust_pending
	mov	x2, x0
	b	LBB0_2
LBB0_6:
	cbz	w21, LBB0_9
; %bb.7:
Lloh5:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_C_CAN_MSG_OBJ_RX_LAST,4,2      ; @C_CAN_MSG_OBJ_RX_LAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Implementation does not support more message objects than 16"

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