	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_hecc_reset
_ti_hecc_reset:                         ## @ti_hecc_reset
	.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, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	_HECC_CANMC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_HECC_CANMC_SRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_hecc_set_bit
	movl	(%rbx), %esi
	movq	_HECC_CANMC_CCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_hecc_set_bit
	movq	_HECC_CCE_WAIT_COUNT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r14
	movq	_HECC_CANES@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_HECC_CANES_CCE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_hecc_get_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	decq	%r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_hecc_get_bit
	addq	$-1, %r14
	setb	%cl
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	jne	LBB0_3
LBB0_5:
	movq	%r13, %rdi
	callq	_ti_hecc_set_btc
	movq	_HECC_CANMC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_hecc_write
	movq	(%rbx), %rbx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_hecc_get_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	decq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_hecc_get_bit
	addq	$-1, %rbx
	setb	%cl
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testb	%cl, %cl
	jne	LBB0_8
LBB0_10:
	movq	_HECC_CANTIOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HECC_CANTIOC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_hecc_write
	movq	_HECC_CANRIOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HECC_CANRIOC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_hecc_write
	movq	_HECC_CANTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HECC_SET_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_hecc_write
	movq	_HECC_CANRMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_hecc_write
	movq	_HECC_CANGIF0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_hecc_write
	movq	_HECC_CANGIF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_hecc_write
	movq	_HECC_CANME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_hecc_write
	movq	_HECC_CANMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_hecc_write
	movl	(%r14), %esi
	movq	_HECC_CANMC_SCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hecc_set_bit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resetting hecc ...\n"

	.comm	_HECC_CANMC,4,2                 ## @HECC_CANMC
	.comm	_HECC_CANMC_SRES,4,2            ## @HECC_CANMC_SRES
	.comm	_HECC_CANMC_CCR,4,2             ## @HECC_CANMC_CCR
	.comm	_HECC_CCE_WAIT_COUNT,8,3        ## @HECC_CCE_WAIT_COUNT
	.comm	_HECC_CANES,4,2                 ## @HECC_CANES
	.comm	_HECC_CANES_CCE,4,2             ## @HECC_CANES_CCE
	.comm	_HECC_CANTIOC,4,2               ## @HECC_CANTIOC
	.comm	_HECC_CANTIOC_EN,4,2            ## @HECC_CANTIOC_EN
	.comm	_HECC_CANRIOC,4,2               ## @HECC_CANRIOC
	.comm	_HECC_CANRIOC_EN,4,2            ## @HECC_CANRIOC_EN
	.comm	_HECC_CANTA,4,2                 ## @HECC_CANTA
	.comm	_HECC_SET_REG,4,2               ## @HECC_SET_REG
	.comm	_HECC_CANRMP,4,2                ## @HECC_CANRMP
	.comm	_HECC_CANGIF0,4,2               ## @HECC_CANGIF0
	.comm	_HECC_CANGIF1,4,2               ## @HECC_CANGIF1
	.comm	_HECC_CANME,4,2                 ## @HECC_CANME
	.comm	_HECC_CANMD,4,2                 ## @HECC_CANMD
	.comm	_HECC_CANMC_SCM,4,2             ## @HECC_CANMC_SCM
	.no_dead_strip	_ti_hecc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_hecc_reset
_ti_hecc_reset:                         ; @ti_hecc_reset
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
Lloh2:
	adrp	x20, _HECC_CANMC@GOTPAGE
Lloh3:
	ldr	x20, [x20, _HECC_CANMC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _HECC_CANMC_SRES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HECC_CANMC_SRES@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hecc_set_bit
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _HECC_CANMC_CCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HECC_CANMC_CCR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hecc_set_bit
Lloh10:
	adrp	x23, _HECC_CCE_WAIT_COUNT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _HECC_CCE_WAIT_COUNT@GOTPAGEOFF]
	ldr	x24, [x23]
Lloh12:
	adrp	x21, _HECC_CANES@GOTPAGE
Lloh13:
	ldr	x21, [x21, _HECC_CANES@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh14:
	adrp	x22, _HECC_CANES_CCE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _HECC_CANES_CCE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hecc_get_bit
	cmp	x0, #0
	ccmp	x24, #0, #4, eq
	b.eq	LBB0_4
; %bb.1:
	sub	x24, x24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hecc_get_bit
	subs	x24, x24, #1
	cset	w8, hs
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w8, #0, LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_ti_hecc_set_btc
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_hecc_write
	ldr	x23, [x23]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hecc_get_bit
	cbz	x0, LBB0_9
; %bb.5:
	cbz	x23, LBB0_9
; %bb.6:
	sub	x23, x23, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hecc_get_bit
	subs	x23, x23, #1
	cset	w8, hs
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w8, #0, LBB0_7
LBB0_9:
Lloh16:
	adrp	x8, _HECC_CANTIOC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HECC_CANTIOC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _HECC_CANTIOC_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HECC_CANTIOC_EN@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hecc_write
Lloh22:
	adrp	x8, _HECC_CANRIOC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HECC_CANRIOC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _HECC_CANRIOC_EN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HECC_CANRIOC_EN@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hecc_write
Lloh28:
	adrp	x8, _HECC_CANTA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HECC_CANTA@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x21, _HECC_SET_REG@GOTPAGE
Lloh32:
	ldr	x21, [x21, _HECC_SET_REG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_hecc_write
Lloh33:
	adrp	x8, _HECC_CANRMP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HECC_CANRMP@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_hecc_write
Lloh36:
	adrp	x8, _HECC_CANGIF0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HECC_CANGIF0@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_hecc_write
Lloh39:
	adrp	x8, _HECC_CANGIF1@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HECC_CANGIF1@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_hecc_write
Lloh42:
	adrp	x8, _HECC_CANME@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HECC_CANME@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hecc_write
Lloh45:
	adrp	x8, _HECC_CANMD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HECC_CANMD@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hecc_write
	ldr	w1, [x20]
Lloh48:
	adrp	x8, _HECC_CANMC_SCM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _HECC_CANMC_SCM@GOTPAGEOFF]
Lloh50:
	ldr	w2, [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	_hecc_set_bit
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resetting hecc ...\n"

	.comm	_HECC_CANMC,4,2                 ; @HECC_CANMC
	.comm	_HECC_CANMC_SRES,4,2            ; @HECC_CANMC_SRES
	.comm	_HECC_CANMC_CCR,4,2             ; @HECC_CANMC_CCR
	.comm	_HECC_CCE_WAIT_COUNT,8,3        ; @HECC_CCE_WAIT_COUNT
	.comm	_HECC_CANES,4,2                 ; @HECC_CANES
	.comm	_HECC_CANES_CCE,4,2             ; @HECC_CANES_CCE
	.comm	_HECC_CANTIOC,4,2               ; @HECC_CANTIOC
	.comm	_HECC_CANTIOC_EN,4,2            ; @HECC_CANTIOC_EN
	.comm	_HECC_CANRIOC,4,2               ; @HECC_CANRIOC
	.comm	_HECC_CANRIOC_EN,4,2            ; @HECC_CANRIOC_EN
	.comm	_HECC_CANTA,4,2                 ; @HECC_CANTA
	.comm	_HECC_SET_REG,4,2               ; @HECC_SET_REG
	.comm	_HECC_CANRMP,4,2                ; @HECC_CANRMP
	.comm	_HECC_CANGIF0,4,2               ; @HECC_CANGIF0
	.comm	_HECC_CANGIF1,4,2               ; @HECC_CANGIF1
	.comm	_HECC_CANME,4,2                 ; @HECC_CANME
	.comm	_HECC_CANMD,4,2                 ; @HECC_CANMD
	.comm	_HECC_CANMC_SCM,4,2             ; @HECC_CANMC_SCM
	.no_dead_strip	_ti_hecc_reset
.subsections_via_symbols
