	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ifi_canfd_poll
_ifi_canfd_poll:                        ## @ifi_canfd_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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_IFI_CANFD_RXSTCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ifi_canfd_handle_state_errors
	movq	%rax, %rbx
	movq	_IFI_CANFD_RXSTCMD_OVERFLOW@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ifi_canfd_handle_lost_msg
	addq	%rax, %rbx
LBB0_2:
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_ifi_canfd_handle_lec_err
	addl	%ebx, %eax
	movl	%eax, %ebx
LBB0_4:
	movq	_IFI_CANFD_RXSTCMD_EMPTY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.6:
	cmpl	%r14d, %ebx
	jge	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_napi_complete_done
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ifi_canfd_irq_enable
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, %esi
	subl	%ebx, %esi
	movq	%r12, %rdi
	callq	_ifi_canfd_do_rx_poll
	addl	%ebx, %eax
	movl	%eax, %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IFI_CANFD_RXSTCMD,8,3          ## @IFI_CANFD_RXSTCMD
	.comm	_IFI_CANFD_RXSTCMD_OVERFLOW,4,2 ## @IFI_CANFD_RXSTCMD_OVERFLOW
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_IFI_CANFD_RXSTCMD_EMPTY,4,2    ## @IFI_CANFD_RXSTCMD_EMPTY
	.no_dead_strip	_ifi_canfd_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_poll
_ifi_canfd_poll:                        ; @ifi_canfd_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	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_netdev_priv
	mov	x24, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IFI_CANFD_RXSTCMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFI_CANFD_RXSTCMD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	mov	x0, x19
	bl	_ifi_canfd_handle_state_errors
	mov	x22, x0
Lloh3:
	adrp	x8, _IFI_CANFD_RXSTCMD_OVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFI_CANFD_RXSTCMD_OVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ifi_canfd_handle_lost_msg
	add	x22, x0, x22
LBB0_2:
	ldr	w8, [x24]
Lloh6:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ifi_canfd_handle_lec_err
	add	w22, w0, w22
LBB0_4:
Lloh9:
	adrp	x8, _IFI_CANFD_RXSTCMD_EMPTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFI_CANFD_RXSTCMD_EMPTY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.5:
	cmp	w22, w21
	b.ge	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	bl	_napi_complete_done
	mov	x0, x19
	mov	w1, #1
	bl	_ifi_canfd_irq_enable
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	sub	w1, w21, w22
	mov	x0, x19
	bl	_ifi_canfd_do_rx_poll
	add	w22, w22, w0
	cmp	w22, w21
	b.lt	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IFI_CANFD_RXSTCMD,8,3          ; @IFI_CANFD_RXSTCMD
	.comm	_IFI_CANFD_RXSTCMD_OVERFLOW,4,2 ; @IFI_CANFD_RXSTCMD_OVERFLOW
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_IFI_CANFD_RXSTCMD_EMPTY,4,2    ; @IFI_CANFD_RXSTCMD_EMPTY
	.no_dead_strip	_ifi_canfd_poll
.subsections_via_symbols
