	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_tx_acknowledge
_kvaser_usb_leaf_tx_acknowledge:        ## @kvaser_usb_leaf_tx_acknowledge
	.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
	movq	(%rsi), %rdx
	cmpq	(%rdi), %rdx
	jae	LBB0_13
## %bb.1:
	movq	8(%rsi), %r12
	movq	16(%r14), %rax
	movq	(%rax,%rdx,8), %rbx
	movq	8(%rbx), %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	8(%rbx), %r15
	movq	48(%rbx), %r13
	movq	8(%r14), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r12
	cmpq	$0, 40(%rbx)
	jne	LBB0_6
	jmp	LBB0_11
LBB0_13:
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
	cmpq	$0, 40(%rbx)
	je	LBB0_11
LBB0_6:
	movq	24(%rbx), %rax
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_CAN_ERR_RESTARTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx
	orl	%ecx, 8(%rdx)
	incl	12(%r15)
	movl	(%rdx), %ecx
	addl	%ecx, 8(%r15)
	movq	%rax, %rdi
	callq	_netif_rx
	jmp	LBB0_10
LBB0_9:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
LBB0_10:
	incl	32(%rbx)
	movq	8(%rbx), %rdi
	callq	_netif_carrier_on
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_11:
	incl	4(%r15)
	shlq	$4, %r12
	movl	8(%r13,%r12), %eax
	addl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rdi
	movq	(%r13,%r12), %rsi
	callq	_can_get_echo_skb
	movq	8(%r14), %rax
	movq	%rax, (%r13,%r12)
	decl	16(%rbx)
	movq	8(%rbx), %rdi
	callq	_netif_wake_queue
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid channel number (%d)\n"

	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_RESTARTED,4,2          ## @CAN_ERR_RESTARTED
L_.str.1:                               ## @.str.1
	.asciz	"No memory left for err_skb\n"

	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ## @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_kvaser_usb_leaf_tx_acknowledge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_leaf_tx_acknowledge
_kvaser_usb_leaf_tx_acknowledge:        ; @kvaser_usb_leaf_tx_acknowledge
	.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	x19, x0
	ldr	x2, [x1]
	ldr	x8, [x0]
	cmp	x2, x8
	b.hs	LBB0_6
; %bb.1:
	ldr	x22, [x1, #8]
	ldr	x8, [x19, #16]
	ldr	x20, [x8, x2, lsl #3]
	ldr	x0, [x20, #8]
	bl	_netif_device_present
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x21, [x20, #8]
	ldr	x8, [x19, #8]
	udiv	x9, x22, x8
	msub	x22, x9, x8, x22
	ldp	x8, x23, [x20, #40]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.4:
	add	x1, sp, #8
	mov	x0, x21
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _CAN_ERR_RESTARTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_ERR_RESTARTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	ldr	d0, [x21, #8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x9]
	add.2s	v0, v0, v1
	str	d0, [x21, #8]
	bl	_netif_rx
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_7:
	ldr	x0, [x20, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
LBB0_8:
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	ldr	x0, [x20, #8]
	bl	_netif_carrier_on
Lloh10:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x20, #24]
LBB0_9:
	add	x22, x23, x22, lsl #4
	add	x8, x22, #8
	ldr	d0, [x21]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x21]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x0, [x20, #8]
	ldr	x1, [x22]
	bl	_can_get_echo_skb
	ldr	x8, [x19, #8]
	str	x8, [x22]
	ldr	w8, [x20, #16]
	sub	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x0, [x20, #8]
	bl	_netif_wake_queue
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid channel number (%d)\n"

	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_RESTARTED,4,2          ; @CAN_ERR_RESTARTED
l_.str.1:                               ; @.str.1
	.asciz	"No memory left for err_skb\n"

	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ; @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_kvaser_usb_leaf_tx_acknowledge
.subsections_via_symbols
