	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ti_hecc_set_btc
LCPI0_0:
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	0                               ## 0x0
	.space	1
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.long	16711680                        ## 0xff0000
	.long	768                             ## 0x300
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ti_hecc_set_btc:                       ## @ti_hecc_set_btc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %eax
	movl	16(%rdi), %ecx
	decl	%eax
	addl	12(%rdi), %ecx
	andl	$7, %eax
	leal	120(,%rcx,8), %r15d
	andl	$120, %r15d
	orl	%eax, %r15d
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_4
## %bb.1:
	cmpl	$5, 20(%r14)
	jl	LBB0_3
## %bb.2:
	movq	_HECC_CANBTC_SAM@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_4:
	movq	20(%r14), %xmm0                 ## xmm0 = mem[0],zero
	pshufb	LCPI0_0(%rip), %xmm0            ## xmm0 = zero,zero,xmm0[0,u],zero,xmm0[4,5,u,u,u,u,u,u,u,u,u]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <16711680,768,u,u>
	paddd	%xmm1, %xmm0
	pand	%xmm1, %xmm0
	pextrd	$1, %xmm0, %eax
	movd	%xmm0, %ebx
	orl	%r15d, %ebx
	orl	%eax, %ebx
	movq	_HECC_CANBTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_hecc_write
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_info
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_HECC_CANBTC_SAM,4,2            ## @HECC_CANBTC_SAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARN: Triple sampling not set due to h/w limitations"

	.comm	_HECC_CANBTC,4,2                ## @HECC_CANBTC
L_.str.1:                               ## @.str.1
	.asciz	"setting CANBTC=%#x\n"

	.no_dead_strip	_ti_hecc_set_btc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ti_hecc_set_btc
lCPI0_0:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
lCPI0_1:
	.long	16711680                        ; 0xff0000
	.long	768                             ; 0x300
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ti_hecc_set_btc:                       ; @ti_hecc_set_btc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w9, w8, [x0, #4]
	sub	w8, w8, #1
	ldp	w10, w11, [x0, #12]
	add	w10, w11, w10
	lsl	w10, w10, #3
	add	w10, w10, #120
	and	w20, w10, #0x78
	bfxil	w20, w8, #0, #3
Lloh0:
	adrp	x8, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19, #20]
	cmp	w8, #5
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _HECC_CANBTC_SAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HECC_CANBTC_SAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_4:
	ldur	d0, [x19, #20]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	add.2s	v0, v0, v1
	and.8b	v0, v0, v1
	mov.s	w8, v0[1]
	orr	w8, w8, w20
	fmov	w9, s0
	orr	w20, w8, w9
Lloh12:
	adrp	x8, _HECC_CANBTC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HECC_CANBTC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_hecc_write
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_netdev_info
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_HECC_CANBTC_SAM,4,2            ; @HECC_CANBTC_SAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARN: Triple sampling not set due to h/w limitations"

	.comm	_HECC_CANBTC,4,2                ; @HECC_CANBTC
l_.str.1:                               ; @.str.1
	.asciz	"setting CANBTC=%#x\n"

	.no_dead_strip	_ti_hecc_set_btc
.subsections_via_symbols
