	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_tx_done
_rcar_canfd_tx_done:                    ## @rcar_canfd_tx_done
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rax
	addq	$28, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rbx
	subq	8(%r12), %rbx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	%r14, %rbx
	jbe	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	_RCANFD_FIFO_DEPTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rsi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %esi
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incl	4(%rdi)
	movq	32(%r12), %rax
	movl	(%rax,%rsi,8), %ecx
	addl	%ecx, (%rdi)
	movq	$0, (%rax,%rsi,8)
	callq	_can_get_echo_skb
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	incq	8(%r12)
	movl	24(%r12), %ebx
	movq	_RCANFD_CFFIFO_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RCANFD_CFSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcar_canfd_read
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_RCANFD_CFSTS_CFMC
	movq	%rax, %r14
	movq	_RCANFD_FIFO_DEPTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
	jmp	LBB0_6
LBB0_7:
	movl	24(%r12), %ebx
	movq	_RCANFD_CFFIFO_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RCANFD_CFSTS
	movq	_RCANFD_CFSTS_CFTXIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r13d
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_rcar_canfd_write
	movq	_CAN_LED_EVENT_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_can_led_event                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCANFD_FIFO_DEPTH,8,3          ## @RCANFD_FIFO_DEPTH
	.comm	_RCANFD_CFFIFO_IDX,4,2          ## @RCANFD_CFFIFO_IDX
	.comm	_RCANFD_CFSTS_CFTXIF,4,2        ## @RCANFD_CFSTS_CFTXIF
	.comm	_CAN_LED_EVENT_TX,4,2           ## @CAN_LED_EVENT_TX
	.no_dead_strip	_rcar_canfd_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_canfd_tx_done
_rcar_canfd_tx_done:                    ; @rcar_canfd_tx_done
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x22, x0
	ldr	w21, [x22], #28
Lloh0:
	adrp	x25, _RCANFD_FIFO_DEPTH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RCANFD_FIFO_DEPTH@GOTPAGEOFF]
Lloh2:
	adrp	x26, _RCANFD_CFFIFO_IDX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RCANFD_CFFIFO_IDX@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [x20, #8]
	sub	x27, x8, x9
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cmp	x27, x24
	b.ls	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x25]
	udiv	x10, x8, x9
	msub	x1, x10, x9, x8
	ldr	x8, [x20, #32]
	lsl	x9, x1, #3
	ldr	x10, [x8, x9]
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w10
	add.2s	v0, v0, v1
	str	d0, [x19]
	str	xzr, [x8, x9]
	mov	x0, x19
	bl	_can_get_echo_skb
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	ldr	w23, [x20, #24]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_RCANFD_CFSTS
	mov	x1, x0
	mov	x0, x23
	bl	_rcar_canfd_read
	mov	x23, x0
	bl	_RCANFD_CFSTS_CFMC
	mov	x24, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_netif_wake_queue
	b	LBB0_1
LBB0_4:
	ldr	w20, [x20, #24]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_RCANFD_CFSTS
	mov	x1, x0
Lloh4:
	adrp	x8, _RCANFD_CFSTS_CFTXIF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RCANFD_CFSTS_CFTXIF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w2, w23, w8
	mov	x0, x20
	bl	_rcar_canfd_write
Lloh7:
	adrp	x8, _CAN_LED_EVENT_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAN_LED_EVENT_TX@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_can_led_event
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RCANFD_FIFO_DEPTH,8,3          ; @RCANFD_FIFO_DEPTH
	.comm	_RCANFD_CFFIFO_IDX,4,2          ; @RCANFD_CFFIFO_IDX
	.comm	_RCANFD_CFSTS_CFTXIF,4,2        ; @RCANFD_CFSTS_CFTXIF
	.comm	_CAN_LED_EVENT_TX,4,2           ; @CAN_LED_EVENT_TX
	.no_dead_strip	_rcar_canfd_tx_done
.subsections_via_symbols
