	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_hecc_xmit
_ti_hecc_xmit:                          ## @ti_hecc_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, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r13), %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_can_dropped_invalid_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_get_tx_head_mb
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_HECC_CANME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hecc_read
	andl	%r12d, %eax
	movl	%eax, %edi
	callq	_unlikely
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_queue
	movl	12(%r14), %edi
	movl	(%r14), %edx
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_get_tx_head_prio
	shll	$8, %eax
	orl	%r15d, %eax
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rbx), %ecx
	je	LBB0_5
## %bb.4:
	movq	_HECC_CANMCF_RTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	orl	%ecx, %eax
	movq	_HECC_CANMCF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_hecc_write_mbx
	movl	4(%rbx), %ecx
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	_HECC_CANMID_IDE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_8
LBB0_7:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	shll	$18, %ecx
LBB0_8:
	movq	_HECC_CANMID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_hecc_write_mbx
	movq	_HECC_CANMDL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_hecc_write_mbx
	cmpl	$5, (%rbx)
	jl	LBB0_10
## %bb.9:
	movq	_HECC_CANMDH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_hecc_write_mbx
	jmp	LBB0_11
LBB0_10:
	movq	8(%rbx), %rax
	movl	$0, 4(%rax)
LBB0_11:
	movl	%r12d, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_HECC_CANME@GOTPCREL(%rip), %r15
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_can_put_echo_skb
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	decl	(%r14)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_hecc_read
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_get_tx_head_mb
	movl	%eax, %edi
	callq	_BIT
	testl	%r15d, %eax
	jne	LBB0_13
## %bb.12:
	movl	(%r14), %eax
	movq	_HECC_TX_MASK@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
LBB0_14:
	movq	_HECC_CANME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_hecc_set_bit
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	_HECC_CANTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_hecc_write
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %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	_HECC_CANME,4,2                 ## @HECC_CANME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG: TX mbx not ready tx_head=%08X, tx_tail=%08X\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_HECC_CANMCF_RTR,4,2            ## @HECC_CANMCF_RTR
	.comm	_HECC_CANMCF,4,2                ## @HECC_CANMCF
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_HECC_CANMID_IDE,4,2            ## @HECC_CANMID_IDE
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_HECC_CANMID,4,2                ## @HECC_CANMID
	.comm	_HECC_CANMDL,4,2                ## @HECC_CANMDL
	.comm	_HECC_CANMDH,4,2                ## @HECC_CANMDH
	.comm	_HECC_TX_MASK,4,2               ## @HECC_TX_MASK
	.comm	_HECC_CANTRS,4,2                ## @HECC_CANTRS
	.no_dead_strip	_ti_hecc_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_hecc_xmit
_ti_hecc_xmit:                          ; @ti_hecc_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	x20, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x27, [x23]
	mov	x0, x20
	mov	x1, x23
	bl	_can_dropped_invalid_skb
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_get_tx_head_mb
	mov	x24, x0
	bl	_BIT
	mov	x21, x0
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x26, _HECC_CANME@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HECC_CANME@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_hecc_read
	and	w0, w0, w21
	bl	_unlikely
	mov	x25, x0
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	x25, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	w2, [x19]
	ldp	w3, w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh6:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_4:
	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
LBB0_5:
	ldr	w25, [x27]
	mov	x0, x19
	bl	_get_tx_head_prio
	orr	w8, w25, w0, lsl #8
	ldr	w9, [x27, #4]
Lloh8:
	adrp	x10, _CAN_RTR_FLAG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _HECC_CANMCF_RTR@GOTPAGE
Lloh12:
	ldr	x11, [x11, _HECC_CANMCF_RTR@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w3, w8, w9
Lloh14:
	adrp	x8, _HECC_CANMCF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HECC_CANMCF@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_hecc_write_mbx
	ldr	w8, [x27, #4]
Lloh17:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x9, _CAN_EFF_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh23:
	adrp	x9, _HECC_CANMID_IDE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HECC_CANMID_IDE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w8, w9
	b	LBB0_8
LBB0_7:
Lloh26:
	adrp	x9, _CAN_SFF_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w8, w9, w8
	lsl	w3, w8, #18
LBB0_8:
Lloh29:
	adrp	x8, _HECC_CANMID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HECC_CANMID@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_hecc_write_mbx
Lloh32:
	adrp	x8, _HECC_CANMDL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HECC_CANMDL@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
	ldr	x8, [x27, #8]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	mov	x3, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_hecc_write_mbx
	ldr	w8, [x27]
	cmp	w8, #5
	b.lt	LBB0_10
; %bb.9:
Lloh35:
	adrp	x8, _HECC_CANMDH@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HECC_CANMDH@GOTPAGEOFF]
Lloh37:
	ldr	w25, [x8]
	ldr	x8, [x27, #8]
	ldr	w0, [x8, #4]
	bl	_be32_to_cpu
	mov	x3, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_hecc_write_mbx
	b	LBB0_11
LBB0_10:
	ldr	x8, [x27, #8]
	str	wzr, [x8, #4]
LBB0_11:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	bl	_can_put_echo_skb
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_hecc_read
	mov	x23, x0
	mov	x0, x19
	bl	_get_tx_head_mb
	bl	_BIT
	tst	w0, w23
	b.ne	LBB0_13
; %bb.12:
	ldr	w8, [x19]
Lloh38:
	adrp	x9, _HECC_TX_MASK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _HECC_TX_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_netif_stop_queue
LBB0_14:
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x21
	bl	_hecc_set_bit
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh41:
	adrp	x8, _HECC_CANTRS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HECC_CANTRS@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_hecc_write
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_HECC_CANME,4,2                 ; @HECC_CANME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: TX mbx not ready tx_head=%08X, tx_tail=%08X\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_HECC_CANMCF_RTR,4,2            ; @HECC_CANMCF_RTR
	.comm	_HECC_CANMCF,4,2                ; @HECC_CANMCF
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_HECC_CANMID_IDE,4,2            ; @HECC_CANMID_IDE
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_HECC_CANMID,4,2                ; @HECC_CANMID
	.comm	_HECC_CANMDL,4,2                ; @HECC_CANMDL
	.comm	_HECC_CANMDH,4,2                ; @HECC_CANMDH
	.comm	_HECC_TX_MASK,4,2               ; @HECC_TX_MASK
	.comm	_HECC_CANTRS,4,2                ; @HECC_CANTRS
	.no_dead_strip	_ti_hecc_xmit
.subsections_via_symbols
