	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4ican_start_xmit
_sun4ican_start_xmit:                   ## @sun4ican_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %r15
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_can_dropped_invalid_skb
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movl	(%r15), %ebx
	movl	4(%r15), %r12d
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%ebx, %ecx
	je	LBB0_3
## %bb.2:
	movq	_SUN4I_MSG_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	orl	%r12d, %ecx
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	_SUN4I_MSG_EFF_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_SUN4I_REG_BUF5_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, %eax
	shrl	$21, %eax
	movzbl	%al, %edi
	movq	_SUN4I_REG_BUF1_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r14), %esi
	callq	_writel
	movl	%ebx, %eax
	shrl	$13, %eax
	movzbl	%al, %edi
	movq	_SUN4I_REG_BUF2_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r14), %esi
	callq	_writel
	movq	_SUN4I_REG_BUF4_ADDR@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$248, -48(%rbp)                 ## 4-byte Folded Spill
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_SUN4I_REG_BUF3_ADDR@GOTPCREL(%rip), %rax
	movl	$5, %ecx
	jmp	LBB0_6
LBB0_5:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_SUN4I_REG_BUF3_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_SUN4I_REG_BUF2_ADDR@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$224, -48(%rbp)                 ## 4-byte Folded Spill
	movl	$5, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_SUN4I_REG_BUF1_ADDR@GOTPCREL(%rip), %rax
	movl	$3, %ecx
LBB0_6:
	movl	%ebx, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	movzbl	%dl, %edi
	movl	(%rax), %esi
	addl	(%r14), %esi
	callq	_writel
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	andl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	addl	(%r14), %esi
	movl	%ebx, %edi
	callq	_writel
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.7:
	movl	%r13d, %r13d
	shlq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx), %edi
	leal	(%rbx,%r13), %esi
	addl	(%r14), %esi
	callq	_writel
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
LBB0_9:
	movq	_SUN4I_REG_BUF0_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r14), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_can_put_echo_skb
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r14), %eax
	jne	LBB0_10
## %bb.11:
	movq	_SUN4I_CMD_TRANS_REQ@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_SUN4I_CMD_SELF_RCV_REQ@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sun4i_can_write_cmdreg
LBB0_13:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %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	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_SUN4I_MSG_RTR_FLAG,4,2         ## @SUN4I_MSG_RTR_FLAG
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_SUN4I_MSG_EFF_FLAG,4,2         ## @SUN4I_MSG_EFF_FLAG
	.comm	_SUN4I_REG_BUF5_ADDR,4,2        ## @SUN4I_REG_BUF5_ADDR
	.comm	_SUN4I_REG_BUF1_ADDR,4,2        ## @SUN4I_REG_BUF1_ADDR
	.comm	_SUN4I_REG_BUF2_ADDR,4,2        ## @SUN4I_REG_BUF2_ADDR
	.comm	_SUN4I_REG_BUF3_ADDR,4,2        ## @SUN4I_REG_BUF3_ADDR
	.comm	_SUN4I_REG_BUF4_ADDR,4,2        ## @SUN4I_REG_BUF4_ADDR
	.comm	_SUN4I_REG_BUF0_ADDR,4,2        ## @SUN4I_REG_BUF0_ADDR
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_SUN4I_CMD_SELF_RCV_REQ,4,2     ## @SUN4I_CMD_SELF_RCV_REQ
	.comm	_SUN4I_CMD_TRANS_REQ,4,2        ## @SUN4I_CMD_TRANS_REQ
	.no_dead_strip	_sun4ican_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4ican_start_xmit
_sun4ican_start_xmit:                   ; @sun4ican_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_can_dropped_invalid_skb
	cbnz	x0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _CAN_RTR_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_RTR_FLAG@GOTPAGEOFF]
	ldp	w25, w24, [x23]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUN4I_MSG_RTR_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUN4I_MSG_RTR_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w25
	csel	w8, wzr, w9, eq
	orr	w22, w8, w24
Lloh6:
	adrp	x8, _CAN_EFF_FLAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _SUN4I_MSG_EFF_FLAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUN4I_MSG_EFF_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w22, w8, w22
Lloh12:
	adrp	x8, _SUN4I_REG_BUF5_ADDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUN4I_REG_BUF5_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ubfx	w0, w25, #21, #8
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _SUN4I_REG_BUF1_ADDR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SUN4I_REG_BUF1_ADDR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w1, w9, w8
	bl	_writel
	ubfx	w0, w25, #13, #8
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _SUN4I_REG_BUF2_ADDR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SUN4I_REG_BUF2_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	add	w1, w9, w8
	bl	_writel
Lloh21:
	adrp	x27, _SUN4I_REG_BUF4_ADDR@GOTPAGE
Lloh22:
	ldr	x27, [x27, _SUN4I_REG_BUF4_ADDR@GOTPAGEOFF]
	mov	w28, #248
	mov	w26, #3
Lloh23:
	adrp	x8, _SUN4I_REG_BUF3_ADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SUN4I_REG_BUF3_ADDR@GOTPAGEOFF]
	mov	w9, #5
	b	LBB0_4
LBB0_3:
Lloh25:
	adrp	x8, _SUN4I_REG_BUF3_ADDR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SUN4I_REG_BUF3_ADDR@GOTPAGEOFF]
Lloh27:
	adrp	x27, _SUN4I_REG_BUF2_ADDR@GOTPAGE
Lloh28:
	ldr	x27, [x27, _SUN4I_REG_BUF2_ADDR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w28, #224
	mov	w26, #5
Lloh30:
	adrp	x8, _SUN4I_REG_BUF1_ADDR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SUN4I_REG_BUF1_ADDR@GOTPAGEOFF]
	mov	w9, #3
LBB0_4:
	lsr	w9, w25, w9
	and	w0, w9, #0xff
	ldr	w9, [x19]
	ldr	w8, [x8]
	add	w1, w8, w9
	bl	_writel
	lsl	w8, w25, w26
	and	w0, w8, w28
	ldr	w8, [x19]
	ldr	w9, [x27]
	add	w1, w9, w8
	bl	_writel
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	lsl	x24, x24, #2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w26, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x25]
	ldr	w8, [x19]
	add	w9, w26, w25
	add	w1, w9, w8
	bl	_writel
	add	x25, x25, #4
	cmp	x24, x25
	b.ne	LBB0_6
LBB0_7:
	ldr	w8, [x19]
Lloh32:
	adrp	x9, _SUN4I_REG_BUF0_ADDR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SUN4I_REG_BUF0_ADDR@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x22
	bl	_writel
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_can_put_echo_skb
	ldr	w8, [x19, #4]
Lloh35:
	adrp	x9, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh37:
	adrp	x10, _SUN4I_CMD_TRANS_REQ@GOTPAGE
Lloh38:
	ldr	x10, [x10, _SUN4I_CMD_TRANS_REQ@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x11, _SUN4I_CMD_SELF_RCV_REQ@GOTPAGE
Lloh41:
	ldr	x11, [x11, _SUN4I_CMD_SELF_RCV_REQ@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sun4i_can_write_cmdreg
LBB0_8:
Lloh42:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_SUN4I_MSG_RTR_FLAG,4,2         ; @SUN4I_MSG_RTR_FLAG
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_SUN4I_MSG_EFF_FLAG,4,2         ; @SUN4I_MSG_EFF_FLAG
	.comm	_SUN4I_REG_BUF5_ADDR,4,2        ; @SUN4I_REG_BUF5_ADDR
	.comm	_SUN4I_REG_BUF1_ADDR,4,2        ; @SUN4I_REG_BUF1_ADDR
	.comm	_SUN4I_REG_BUF2_ADDR,4,2        ; @SUN4I_REG_BUF2_ADDR
	.comm	_SUN4I_REG_BUF3_ADDR,4,2        ; @SUN4I_REG_BUF3_ADDR
	.comm	_SUN4I_REG_BUF4_ADDR,4,2        ; @SUN4I_REG_BUF4_ADDR
	.comm	_SUN4I_REG_BUF0_ADDR,4,2        ; @SUN4I_REG_BUF0_ADDR
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_SUN4I_CMD_SELF_RCV_REQ,4,2     ; @SUN4I_CMD_SELF_RCV_REQ
	.comm	_SUN4I_CMD_TRANS_REQ,4,2        ; @SUN4I_CMD_TRANS_REQ
	.no_dead_strip	_sun4ican_start_xmit
.subsections_via_symbols
