	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_can_tx_done
_rcar_can_tx_done:                      ## @rcar_can_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	addq	$4, %rdi
	callq	_readb
	movl	%eax, %edx
	movq	_RCAR_CAN_TFCR_TFUST@GOTPCREL(%rip), %r15
	andl	(%r15), %edx
	movq	_RCAR_CAN_TFCR_TFUST_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	sarl	%cl, %edx
	movslq	(%rbx), %rcx
	movq	8(%rbx), %rax
	subq	%rax, %rcx
	movslq	%edx, %rdx
	cmpq	%rdx, %rcx
	jbe	LBB0_9
## %bb.1:
	movq	_RCAR_CAN_FIFO_DEPTH@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_can_get_echo_skb
	incq	8(%rbx)
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_readb
	movl	%eax, %edx
	andl	(%r15), %edx
	movzbl	(%r12), %ecx
	sarl	%cl, %edx
	movslq	(%rbx), %rcx
	movq	8(%rbx), %rax
	subq	%rax, %rcx
	movslq	%edx, %rdx
	cmpq	%rdx, %rcx
	jbe	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	4(%r14)
	movq	24(%rbx), %rcx
	movq	(%r13), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx,%rdx,8), %eax
	addl	%eax, (%r14)
	movq	$0, (%rcx,%rdx,8)
	movq	8(%rbx), %rax
	movq	(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %esi
	jmp	LBB0_8
LBB0_9:
	movq	16(%rbx), %rdi
	callq	_readb
	movq	_RCAR_CAN_ISR_TXFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	16(%rbx), %rsi
	callq	_writeb
	movq	_CAN_LED_EVENT_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_can_led_event                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_CAN_TFCR_TFUST,4,2        ## @RCAR_CAN_TFCR_TFUST
	.comm	_RCAR_CAN_TFCR_TFUST_SHIFT,4,2  ## @RCAR_CAN_TFCR_TFUST_SHIFT
	.comm	_RCAR_CAN_FIFO_DEPTH,8,3        ## @RCAR_CAN_FIFO_DEPTH
	.comm	_RCAR_CAN_ISR_TXFF,4,2          ## @RCAR_CAN_ISR_TXFF
	.comm	_CAN_LED_EVENT_TX,4,2           ## @CAN_LED_EVENT_TX
	.no_dead_strip	_rcar_can_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_can_tx_done
_rcar_can_tx_done:                      ; @rcar_can_tx_done
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #16]
	add	x0, x8, #4
	bl	_readb
Lloh0:
	adrp	x21, _RCAR_CAN_TFCR_TFUST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RCAR_CAN_TFCR_TFUST@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w8, w8, w0
Lloh2:
	adrp	x22, _RCAR_CAN_TFCR_TFUST_SHIFT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RCAR_CAN_TFCR_TFUST_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
	asr	w9, w8, w9
	ldrsw	x10, [x20]
	ldr	x8, [x20, #8]
	sub	x10, x10, x8
	cmp	x10, w9, sxtw
	b.ls	LBB0_3
; %bb.1:
Lloh4:
	adrp	x23, _RCAR_CAN_FIFO_DEPTH@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RCAR_CAN_FIFO_DEPTH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	ldr	x10, [x23]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	lsl	x8, x8, #3
	ldr	x10, [x9, x8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w10
	add.2s	v0, v0, v1
	str	d0, [x19]
	str	xzr, [x9, x8]
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	udiv	x10, x8, x9
	msub	x1, x10, x9, x8
	mov	x0, x19
	bl	_can_get_echo_skb
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	mov	x0, x19
	bl	_netif_wake_queue
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_readb
	ldr	w8, [x21]
	and	w8, w8, w0
	ldr	w9, [x22]
	asr	w9, w8, w9
	ldrsw	x10, [x20]
	ldr	x8, [x20, #8]
	sub	x10, x10, x8
	cmp	x10, w9, sxtw
	b.hi	LBB0_2
LBB0_3:
	ldr	x0, [x20, #16]
	bl	_readb
Lloh6:
	adrp	x8, _RCAR_CAN_ISR_TXFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCAR_CAN_ISR_TXFF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x1, [x20, #16]
	bl	_writeb
Lloh9:
	adrp	x8, _CAN_LED_EVENT_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_LED_EVENT_TX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_can_led_event
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_CAN_TFCR_TFUST,4,2        ; @RCAR_CAN_TFCR_TFUST
	.comm	_RCAR_CAN_TFCR_TFUST_SHIFT,4,2  ; @RCAR_CAN_TFCR_TFUST_SHIFT
	.comm	_RCAR_CAN_FIFO_DEPTH,8,3        ; @RCAR_CAN_FIFO_DEPTH
	.comm	_RCAR_CAN_ISR_TXFF,4,2          ; @RCAR_CAN_ISR_TXFF
	.comm	_CAN_LED_EVENT_TX,4,2           ; @CAN_LED_EVENT_TX
	.no_dead_strip	_rcar_can_tx_done
.subsections_via_symbols
