	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_start_xmit
_at91_start_xmit:                       ## @at91_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, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_can_dropped_invalid_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_get_tx_next_mb
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_get_tx_next_prio
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_AT91_MSR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_read
	movq	_AT91_MSR_MRDY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_netif_stop_queue
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	(%r13), %edi
	callq	_at91_can_id_to_reg_mid
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	je	LBB0_5
## %bb.4:
	movq	_AT91_MCR_MRTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movl	4(%r13), %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	_AT91_MCR_MTCR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_AT91_MB_MODE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_set_mb_mode
	movl	%r15d, %edi
	callq	_AT91_MID
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_at91_write
	movq	_AT91_MB_MODE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_set_mb_mode_prio
	movl	%r15d, %edi
	callq	_AT91_MDL
	movq	8(%r13), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_write
	movl	%r15d, %edi
	callq	_AT91_MDH
	movq	8(%r13), %rcx
	movl	4(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_write
	movl	%r15d, %edi
	callq	_AT91_MCR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_at91_write
	movl	4(%r13), %eax
	addl	%eax, (%r12)
	movl	%r15d, %r13d
	movq	%r14, %rdi
	callq	_get_mb_tx_first
	subq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_can_put_echo_skb
	incl	(%r14)
	movq	%r14, %rdi
	callq	_get_tx_next_mb
	movl	%eax, %edi
	callq	_AT91_MSR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_read
	movq	_AT91_MSR_MRDY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_get_next_mask
	testl	%ebx, %eax
	jne	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	callq	_netif_stop_queue
LBB0_8:
	movq	_AT91_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_at91_write
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %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	_AT91_MSR_MRDY,4,2              ## @AT91_MSR_MRDY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! TX buffer full when queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_AT91_MCR_MRTR,4,2              ## @AT91_MCR_MRTR
	.comm	_AT91_MCR_MTCR,4,2              ## @AT91_MCR_MTCR
	.comm	_AT91_MB_MODE_DISABLED,4,2      ## @AT91_MB_MODE_DISABLED
	.comm	_AT91_MB_MODE_TX,4,2            ## @AT91_MB_MODE_TX
	.comm	_AT91_IER,4,2                   ## @AT91_IER
	.no_dead_strip	_at91_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_start_xmit
_at91_start_xmit:                       ; @at91_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x27, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_can_dropped_invalid_skb
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_get_tx_next_mb
	mov	x21, x0
	mov	x0, x20
	bl	_get_tx_next_prio
	mov	x23, x0
	mov	x0, x21
	bl	_AT91_MSR
	mov	x1, x0
	mov	x0, x20
	bl	_at91_read
Lloh2:
	adrp	x26, _AT91_MSR_MRDY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AT91_MSR_MRDY@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_netif_stop_queue
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh6:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x27]
	bl	_at91_can_id_to_reg_mid
	mov	x25, x0
Lloh8:
	adrp	x8, _CAN_RTR_FLAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w10, [x27]
	tst	w8, w9
Lloh11:
	adrp	x8, _AT91_MCR_MRTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT91_MCR_MRTR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	csel	w8, wzr, w8, eq
Lloh14:
	adrp	x9, _AT91_MCR_MTCR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AT91_MCR_MTCR@GOTPAGEOFF]
	orr	w8, w8, w10, lsl #16
Lloh16:
	ldr	w9, [x9]
	orr	w24, w8, w9
Lloh17:
	adrp	x8, _AT91_MB_MODE_DISABLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AT91_MB_MODE_DISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_set_mb_mode
	mov	x0, x21
	bl	_AT91_MID
	mov	x1, x0
	mov	x0, x20
	mov	x2, x25
	bl	_at91_write
Lloh20:
	adrp	x8, _AT91_MB_MODE_TX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AT91_MB_MODE_TX@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	bl	_set_mb_mode_prio
	mov	x0, x21
	bl	_AT91_MDL
	mov	x1, x0
	ldr	x8, [x27, #8]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_at91_write
	mov	x0, x21
	bl	_AT91_MDH
	mov	x1, x0
	ldr	x8, [x27, #8]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_at91_write
	mov	x0, x21
	bl	_AT91_MCR
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_at91_write
	ldr	w8, [x27, #4]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	mov	w23, w21
	mov	x0, x20
	bl	_get_mb_tx_first
	sub	x2, x23, x0
	mov	x0, x22
	mov	x1, x19
	bl	_can_put_echo_skb
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x20
	bl	_get_tx_next_mb
	bl	_AT91_MSR
	mov	x1, x0
	mov	x0, x20
	bl	_at91_read
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w22, [x20]
	mov	x0, x20
	bl	_get_next_mask
	tst	w0, w22
	b.ne	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_8:
Lloh23:
	adrp	x8, _AT91_IER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AT91_IER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w2, w8, w21
	mov	x0, x20
	bl	_at91_write
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_AT91_MSR_MRDY,4,2              ; @AT91_MSR_MRDY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! TX buffer full when queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_AT91_MCR_MRTR,4,2              ; @AT91_MCR_MRTR
	.comm	_AT91_MCR_MTCR,4,2              ; @AT91_MCR_MTCR
	.comm	_AT91_MB_MODE_DISABLED,4,2      ; @AT91_MB_MODE_DISABLED
	.comm	_AT91_MB_MODE_TX,4,2            ; @AT91_MB_MODE_TX
	.comm	_AT91_IER,4,2                   ; @AT91_IER
	.no_dead_strip	_at91_start_xmit
.subsections_via_symbols
