	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_rx_poll
_xcan_rx_poll:                          ## @xcan_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, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_xcan_rx_fifo_get_next_frame
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_xcan_rx_int_mask
	movq	_XCAN_IXR_RXOK_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_xcanfd_rx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_xcan_rx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %ebx
	movq	_XCAN_FLAG_RX_FIFO_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r14), %eax
	movq	_XCAN_FSR_OFFSET@GOTPCREL(%rip), %rax
	cmoveq	_XCAN_ICR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XCAN_FSR_IRI_MASK@GOTPCREL(%rip), %rax
	cmoveq	_XCAN_IXR_RXNEMP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	%r14, %rdi
	callq	_xcan_rx_fifo_get_next_frame
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	cmpl	%r12d, %ebx
	jl	LBB0_4
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_can_led_event
	movq	%r13, %rdi
	callq	_xcan_update_error_state_after_rxtx
	cmpl	%r12d, %ebx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_2:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jle	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_napi_complete_done
	movq	_XCAN_IER_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	*(%r14)
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_xcan_rx_int_mask
	orl	%eax, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	*8(%r14)
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	%r12d, %ebx
	movl	$0, %ebx
	jl	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_IXR_RXOK_MASK,4,2         ## @XCAN_IXR_RXOK_MASK
	.comm	_XCAN_FLAG_RX_FIFO_MULTI,4,2    ## @XCAN_FLAG_RX_FIFO_MULTI
	.comm	_XCAN_FSR_OFFSET,4,2            ## @XCAN_FSR_OFFSET
	.comm	_XCAN_FSR_IRI_MASK,4,2          ## @XCAN_FSR_IRI_MASK
	.comm	_XCAN_ICR_OFFSET,4,2            ## @XCAN_ICR_OFFSET
	.comm	_XCAN_IXR_RXNEMP_MASK,4,2       ## @XCAN_IXR_RXNEMP_MASK
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.comm	_XCAN_IER_OFFSET,4,2            ## @XCAN_IER_OFFSET
	.no_dead_strip	_xcan_rx_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_rx_poll
_xcan_rx_poll:                          ; @xcan_rx_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x21, x0
	ldr	x23, [x0]
	mov	x0, x23
	bl	_netdev_priv
	mov	x19, x0
	bl	_xcan_rx_fifo_get_next_frame
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x24, x0
	tbnz	w0, #31, LBB0_11
; %bb.2:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	w20, #0
Lloh0:
	adrp	x26, _XCAN_FLAG_RX_FIFO_MULTI@GOTPAGE
Lloh1:
	ldr	x26, [x26, _XCAN_FLAG_RX_FIFO_MULTI@GOTPAGEOFF]
Lloh2:
	adrp	x27, _XCAN_ICR_OFFSET@GOTPAGE
Lloh3:
	ldr	x27, [x27, _XCAN_ICR_OFFSET@GOTPAGEOFF]
Lloh4:
	adrp	x28, _XCAN_FSR_OFFSET@GOTPAGE
Lloh5:
	ldr	x28, [x28, _XCAN_FSR_OFFSET@GOTPAGEOFF]
Lloh6:
	adrp	x21, _XCAN_IXR_RXNEMP_MASK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _XCAN_IXR_RXNEMP_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x25, _XCAN_FSR_IRI_MASK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _XCAN_FSR_IRI_MASK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_xcan_rx_int_mask
Lloh10:
	adrp	x8, _XCAN_IXR_RXOK_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XCAN_IXR_RXOK_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_xcanfd_rx
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_xcan_rx
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, w0
	ldr	w8, [x19, #16]
	ldr	w9, [x26]
	ldr	x10, [x19, #8]
	tst	w9, w8
	csel	x8, x27, x28, eq
	ldr	w1, [x8]
	csel	x8, x21, x25, eq
	ldr	w2, [x8]
	mov	x0, x19
	blr	x10
	mov	x0, x19
	bl	_xcan_rx_fifo_get_next_frame
	tbnz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	cmp	w20, w22
	b.lt	LBB0_3
LBB0_8:
	cbz	w20, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_can_led_event
	mov	x0, x23
	bl	_xcan_update_error_state_after_rxtx
LBB0_10:
	cmp	w20, w22
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_12
	b	LBB0_13
LBB0_11:
	mov	w20, #0
	cmp	w22, #0
	b.le	LBB0_13
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_napi_complete_done
	ldr	x8, [x19]
Lloh16:
	adrp	x22, _XCAN_IER_OFFSET@GOTPAGE
Lloh17:
	ldr	x22, [x22, _XCAN_IER_OFFSET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x0, x19
	bl	_xcan_rx_int_mask
	orr	w2, w0, w21
	ldr	x8, [x19, #8]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_IXR_RXOK_MASK,4,2         ; @XCAN_IXR_RXOK_MASK
	.comm	_XCAN_FLAG_RX_FIFO_MULTI,4,2    ; @XCAN_FLAG_RX_FIFO_MULTI
	.comm	_XCAN_FSR_OFFSET,4,2            ; @XCAN_FSR_OFFSET
	.comm	_XCAN_FSR_IRI_MASK,4,2          ; @XCAN_FSR_IRI_MASK
	.comm	_XCAN_ICR_OFFSET,4,2            ; @XCAN_ICR_OFFSET
	.comm	_XCAN_IXR_RXNEMP_MASK,4,2       ; @XCAN_IXR_RXNEMP_MASK
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.comm	_XCAN_IER_OFFSET,4,2            ; @XCAN_IER_OFFSET
	.no_dead_strip	_xcan_rx_poll
.subsections_via_symbols
