	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_pciefd_start_xmit
_kvaser_pciefd_start_xmit:              ## @kvaser_pciefd_start_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_can_dropped_invalid_skb
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_kvaser_pciefd_prepare_tx_packet
	movl	%eax, %r12d
	movq	%r13, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_can_put_echo_skb
	movl	(%r13), %eax
	incl	%eax
	cltd
	idivl	8(%r13)
	movl	%edx, (%r13)
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	movq	_KVASER_PCIEFD_KCAN_FIFO_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	24(%r13), %rsi
	callq	_iowrite32
	movq	-48(%rbp), %rax
	movl	4(%rax), %edi
	movq	(%rbx), %rsi
	addq	24(%r13), %rsi
	callq	_iowrite32
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rsi
	movslq	%r12d, %rax
	decl	%r12d
	movq	%rbx, %rcx
	movl	-4(%rsi,%rax,4), %ebx
	movq	(%rcx), %rdi
	addq	24(%r13), %rdi
	movl	%r12d, %edx
	callq	_iowrite32_rep
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	_KVASER_PCIEFD_KCAN_FIFO_LAST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r13), %rsi
	movl	%ebx, %edi
	callq	___raw_writel
	movq	_KVASER_PCIEFD_KCAN_TX_NPACKETS_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_ioread32
	movq	_KVASER_PCIEFD_CAN_TX_MAX_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	movq	16(%r13), %rax
	movslq	(%r13), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %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	_KVASER_PCIEFD_KCAN_FIFO_REG,8,3 ## @KVASER_PCIEFD_KCAN_FIFO_REG
	.comm	_KVASER_PCIEFD_KCAN_FIFO_LAST_REG,8,3 ## @KVASER_PCIEFD_KCAN_FIFO_LAST_REG
	.comm	_KVASER_PCIEFD_KCAN_TX_NPACKETS_REG,8,3 ## @KVASER_PCIEFD_KCAN_TX_NPACKETS_REG
	.comm	_KVASER_PCIEFD_CAN_TX_MAX_COUNT,8,3 ## @KVASER_PCIEFD_CAN_TX_MAX_COUNT
	.no_dead_strip	_kvaser_pciefd_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_pciefd_start_xmit
_kvaser_pciefd_start_xmit:              ; @kvaser_pciefd_start_xmit
	.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, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	mov	x1, x23
	bl	_can_dropped_invalid_skb
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x23
	bl	_kvaser_pciefd_prepare_tx_packet
	mov	x22, x0
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w2, [x20]
	mov	x0, x23
	mov	x1, x19
	bl	_can_put_echo_skb
	ldr	w8, [x20]
	add	w8, w8, #1
	ldr	w9, [x20, #8]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x20]
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x23, _KVASER_PCIEFD_KCAN_FIFO_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KVASER_PCIEFD_KCAN_FIFO_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_iowrite32
	cbz	w22, LBB0_3
; %bb.2:
	ldr	x1, [sp]
	sub	w2, w22, #1
	ldr	w22, [x1, w2, sxtw #2]
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_iowrite32_rep
LBB0_3:
	ldr	x8, [x20, #24]
Lloh2:
	adrp	x9, _KVASER_PCIEFD_KCAN_FIFO_LAST_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KVASER_PCIEFD_KCAN_FIFO_LAST_REG@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	___raw_writel
	ldr	x8, [x20, #24]
Lloh5:
	adrp	x9, _KVASER_PCIEFD_KCAN_TX_NPACKETS_REG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KVASER_PCIEFD_KCAN_TX_NPACKETS_REG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
Lloh8:
	adrp	x8, _KVASER_PCIEFD_CAN_TX_MAX_COUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KVASER_PCIEFD_CAN_TX_MAX_COUNT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_7:
Lloh11:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_KVASER_PCIEFD_KCAN_FIFO_REG,8,3 ; @KVASER_PCIEFD_KCAN_FIFO_REG
	.comm	_KVASER_PCIEFD_KCAN_FIFO_LAST_REG,8,3 ; @KVASER_PCIEFD_KCAN_FIFO_LAST_REG
	.comm	_KVASER_PCIEFD_KCAN_TX_NPACKETS_REG,8,3 ; @KVASER_PCIEFD_KCAN_TX_NPACKETS_REG
	.comm	_KVASER_PCIEFD_CAN_TX_MAX_COUNT,8,3 ; @KVASER_PCIEFD_CAN_TX_MAX_COUNT
	.no_dead_strip	_kvaser_pciefd_start_xmit
.subsections_via_symbols
