	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_hecc_change_state
_ti_hecc_change_state:                  ## @ti_hecc_change_state
	.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
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_alloc_can_err_skb
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_max
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
LBB0_2:
	movl	4(%rbx), %edi
	movq	-48(%rbp), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_can_change_state
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_max
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_HECC_CANTEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hecc_read
	movq	-48(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 48(%rcx)
	movq	_HECC_CANREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hecc_read
	movq	-48(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 56(%rcx)
LBB0_4:
	movq	_HECC_CANLNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hecc_read
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_can_rx_offload_queue_sorted
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	incl	(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
	.comm	_HECC_CANTEC,4,2                ## @HECC_CANTEC
	.comm	_HECC_CANREC,4,2                ## @HECC_CANREC
	.comm	_HECC_CANLNT,4,2                ## @HECC_CANLNT
	.no_dead_strip	_ti_hecc_change_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_hecc_change_state
_ti_hecc_change_state:                  ; @ti_hecc_change_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #4]
	add	x1, sp, #8
	bl	_alloc_can_err_skb
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_max
	str	x0, [x20, #8]
	b	LBB0_6
LBB0_2:
	ldr	w0, [x20, #4]
	ldr	x1, [sp, #8]
	mov	x2, x23
	mov	x3, x22
	bl	_can_change_state
	mov	x0, x23
	mov	x1, x22
	bl	_max
Lloh0:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _HECC_CANTEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HECC_CANTEC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hecc_read
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x0, [x8, #48]
Lloh6:
	adrp	x8, _HECC_CANREC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HECC_CANREC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hecc_read
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x0, [x8, #56]
LBB0_4:
Lloh9:
	adrp	x8, _HECC_CANLNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HECC_CANLNT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hecc_read
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_can_rx_offload_queue_sorted
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
	.comm	_HECC_CANTEC,4,2                ; @HECC_CANTEC
	.comm	_HECC_CANREC,4,2                ; @HECC_CANREC
	.comm	_HECC_CANLNT,4,2                ; @HECC_CANLNT
	.no_dead_strip	_ti_hecc_change_state
.subsections_via_symbols
