	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_start_xmit
_rcar_canfd_start_xmit:                 ## @rcar_canfd_start_xmit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	(%rbx), %r14
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_can_dropped_invalid_skb
	testq	%rax, %rax
	jne	LBB0_21
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movl	(%r14), %r14d
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_RCANFD_CFID_CFIDE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
LBB0_4:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	je	LBB0_6
## %bb.5:
	movq	_RCANFD_CFID_CFRTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_6:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	orl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_can_len2dlc
	movl	%eax, %edi
	callq	_RCANFD_CFPTR_CFDLC
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	28(%r13), %ebx
	movq	_RCANFD_CFFIFO_IDX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testl	%eax, 40(%r13)
	je	LBB0_14
## %bb.7:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_RCANFD_F_CFID
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_rcar_canfd_write
	movl	28(%r13), %ebx
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_RCANFD_F_CFPTR
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_rcar_canfd_write
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_can_is_canfd_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_RCANFD_CFFDCSTS_CFFDF@GOTPCREL(%rip), %rax
	movq	_CANFD_BRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	andl	4(%rcx), %r14d
	je	LBB0_11
## %bb.10:
	movq	_RCANFD_CFFDCSTS_CFBRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_11:
	orl	(%rax), %r14d
	movq	48(%r13), %rax
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_RCANFD_CFFDCSTS_CFESI@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_13
LBB0_14:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_RCANFD_C_CFID
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_rcar_canfd_write
	movl	28(%r13), %ebx
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_RCANFD_C_CFPTR
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_rcar_canfd_write
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_RCANFD_C_CFDF
	jmp	LBB0_15
LBB0_8:
	xorl	%r14d, %r14d
LBB0_13:
	movl	28(%r13), %r15d
	movl	(%r12), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RCANFD_F_CFFDCSTS
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_rcar_canfd_write
	movl	(%r12), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_RCANFD_F_CFDF
LBB0_15:
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_rcar_canfd_put_data
	movl	8(%rbx), %ecx
	movq	8(%r13), %rax
	movq	32(%r13), %rsi
	movq	_RCANFD_FIFO_DEPTH@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.17:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_18
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_18:
	movl	%ecx, (%rsi,%rdx,4)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_can_put_echo_skb
	movq	%r13, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r13), %rax
	incq	%rax
	movq	%rax, 8(%r13)
	subq	16(%r13), %rax
	cmpq	(%r14), %rax
	jb	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_netif_stop_queue
LBB0_20:
	movl	28(%r13), %r14d
	movl	(%r12), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RCANFD_CFPCTR
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_rcar_canfd_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_21:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_RCANFD_CFID_CFIDE,4,2          ## @RCANFD_CFID_CFIDE
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_RCANFD_CFID_CFRTR,4,2          ## @RCANFD_CFID_CFRTR
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.comm	_RCANFD_CFFIFO_IDX,4,2          ## @RCANFD_CFFIFO_IDX
	.comm	_RCANFD_CFFDCSTS_CFFDF,4,2      ## @RCANFD_CFFDCSTS_CFFDF
	.comm	_CANFD_BRS,4,2                  ## @CANFD_BRS
	.comm	_RCANFD_CFFDCSTS_CFBRS,4,2      ## @RCANFD_CFFDCSTS_CFBRS
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_RCANFD_CFFDCSTS_CFESI,4,2      ## @RCANFD_CFFDCSTS_CFESI
	.comm	_RCANFD_FIFO_DEPTH,8,3          ## @RCANFD_FIFO_DEPTH
	.no_dead_strip	_rcar_canfd_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_canfd_start_xmit
_rcar_canfd_start_xmit:                 ; @rcar_canfd_start_xmit
	.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, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x23, [x22]
	ldr	w20, [x0]
	mov	x0, x19
	mov	x1, x22
	bl	_can_dropped_invalid_skb
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _CAN_EFF_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh6:
	adrp	x10, _RCANFD_CFID_CFIDE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RCANFD_CFID_CFIDE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x9, _CAN_SFF_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w8
LBB0_4:
Lloh12:
	adrp	x10, _CAN_RTR_FLAG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh14:
	adrp	x11, _RCANFD_CFID_CFRTR@GOTPAGE
Lloh15:
	ldr	x11, [x11, _RCANFD_CFID_CFRTR@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w25, w8, w9
	ldr	w0, [x23, #8]
	bl	_can_len2dlc
	bl	_RCANFD_CFPTR_CFDLC
	mov	x24, x0
	ldr	w8, [x21, #40]
Lloh18:
	adrp	x9, _CAN_CTRLMODE_FD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w26, [x21, #28]
Lloh21:
	adrp	x27, _RCANFD_CFFIFO_IDX@GOTPAGE
Lloh22:
	ldr	x27, [x27, _RCANFD_CFFIFO_IDX@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	bl	_RCANFD_F_CFID
	mov	x1, x0
	mov	x0, x26
	mov	x2, x25
	bl	_rcar_canfd_write
	ldr	w25, [x21, #28]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_RCANFD_F_CFPTR
	mov	x1, x0
	mov	x0, x25
	mov	x2, x24
	bl	_rcar_canfd_write
	mov	x0, x22
	bl	_can_is_canfd_skb
	cbz	x0, LBB0_9
; %bb.6:
Lloh23:
	adrp	x8, _RCANFD_CFFDCSTS_CFFDF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RCANFD_CFFDCSTS_CFFDF@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x23, #4]
Lloh26:
	adrp	x10, _CANFD_BRS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _CANFD_BRS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	adrp	x11, _RCANFD_CFFDCSTS_CFBRS@GOTPAGE
Lloh30:
	ldr	x11, [x11, _RCANFD_CFFDCSTS_CFBRS@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w24, w9, w8
	ldr	x8, [x21, #48]
Lloh32:
	adrp	x9, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
Lloh35:
	adrp	x8, _RCANFD_CFFDCSTS_CFESI@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RCANFD_CFFDCSTS_CFESI@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	orr	w24, w8, w24
	b	LBB0_10
LBB0_8:
	bl	_RCANFD_C_CFID
	mov	x1, x0
	mov	x0, x26
	mov	x2, x25
	bl	_rcar_canfd_write
	ldr	w25, [x21, #28]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_RCANFD_C_CFPTR
	mov	x1, x0
	mov	x0, x25
	mov	x2, x24
	bl	_rcar_canfd_write
	ldr	w1, [x27]
	mov	x0, x20
	mov	w2, #0
	bl	_RCANFD_C_CFDF
	b	LBB0_11
LBB0_9:
	mov	w24, #0
LBB0_10:
	ldr	w25, [x21, #28]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_RCANFD_F_CFFDCSTS
	mov	x1, x0
	mov	x0, x25
	mov	x2, x24
	bl	_rcar_canfd_write
	ldr	w1, [x27]
	mov	x0, x20
	mov	w2, #0
	bl	_RCANFD_F_CFDF
LBB0_11:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_rcar_canfd_put_data
	ldr	w8, [x23, #8]
	ldr	x9, [x21, #32]
Lloh38:
	adrp	x23, _RCANFD_FIFO_DEPTH@GOTPAGE
Lloh39:
	ldr	x23, [x23, _RCANFD_FIFO_DEPTH@GOTPAGEOFF]
	ldr	x10, [x21, #8]
	ldr	x11, [x23]
	udiv	x12, x10, x11
	msub	x2, x12, x11, x10
	str	w8, [x9, x2, lsl #2]
	mov	x0, x22
	mov	x1, x19
	bl	_can_put_echo_skb
	add	x22, x21, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x21, #8]
	add	x8, x8, #1
	str	x8, [x21, #8]
	ldr	x10, [x23]
	sub	x8, x8, x9
	cmp	x8, x10
	b.lo	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_13:
	ldr	w19, [x21, #28]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_RCANFD_CFPCTR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_rcar_canfd_write
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_14:
Lloh40:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_RCANFD_CFID_CFIDE,4,2          ; @RCANFD_CFID_CFIDE
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_RCANFD_CFID_CFRTR,4,2          ; @RCANFD_CFID_CFRTR
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.comm	_RCANFD_CFFIFO_IDX,4,2          ; @RCANFD_CFFIFO_IDX
	.comm	_RCANFD_CFFDCSTS_CFFDF,4,2      ; @RCANFD_CFFDCSTS_CFFDF
	.comm	_CANFD_BRS,4,2                  ; @CANFD_BRS
	.comm	_RCANFD_CFFDCSTS_CFBRS,4,2      ; @RCANFD_CFFDCSTS_CFBRS
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_RCANFD_CFFDCSTS_CFESI,4,2      ; @RCANFD_CFFDCSTS_CFESI
	.comm	_RCANFD_FIFO_DEPTH,8,3          ; @RCANFD_FIFO_DEPTH
	.no_dead_strip	_rcar_canfd_start_xmit
.subsections_via_symbols
