	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ifi_canfd_do_rx_poll
_ifi_canfd_do_rx_poll:                  ## @ifi_canfd_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, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_IFI_CANFD_RXSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_IFI_CANFD_RXSTCMD_EMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_dbg
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rcx, %rbx
	callq	_ifi_canfd_read_fifo
	movq	_IFI_CANFD_RXSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	%rbx, %rcx
	leal	-1(%r13), %ebx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%r14d, %r13d
	cmpl	$1, %r13d
	movl	%ebx, %r13d
	ja	LBB0_4
LBB0_6:
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_can_led_event
	negl	%ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFI_CANFD_RXSTCMD,8,3          ## @IFI_CANFD_RXSTCMD
	.comm	_IFI_CANFD_RXSTCMD_EMPTY,4,2    ## @IFI_CANFD_RXSTCMD_EMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No messages in RX FIFO\n"

	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_ifi_canfd_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 ifi_canfd_do_rx_poll
_ifi_canfd_do_rx_poll:                  ; @ifi_canfd_do_rx_poll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _IFI_CANFD_RXSTCMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IFI_CANFD_RXSTCMD@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x23, _IFI_CANFD_RXSTCMD_EMPTY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IFI_CANFD_RXSTCMD_EMPTY@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
LBB0_2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:
	mov	w24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w25, w20, w24
	mov	x0, x19
	bl	_ifi_canfd_read_fifo
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23]
	and	w8, w8, w0
	sub	w24, w24, #1
	cmp	w8, #0
	ccmp	w25, #1, #0, eq
	b.hi	LBB0_5
; %bb.6:
Lloh6:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
	neg	w0, w24
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFI_CANFD_RXSTCMD,8,3          ; @IFI_CANFD_RXSTCMD
	.comm	_IFI_CANFD_RXSTCMD_EMPTY,4,2    ; @IFI_CANFD_RXSTCMD_EMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No messages in RX FIFO\n"

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