	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_ndo_start_xmit
_cpsw_ndo_start_xmit:                   ## @cpsw_ndo_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
	pushq	%rax
	.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, %r12
	movq	16(%rax), %r13
	movq	24(%r13), %r15
	movq	_CPSW_MIN_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_padto
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_cpsw_err
	incl	(%r14)
	movq	_NET_XMIT_DROP@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_2:
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	_SKBTX_HW_TSTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cpts_can_timestamp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	orl	%r15d, (%rax)
LBB0_6:
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_8
## %bb.7:
	cltd
	idivl	%ecx
	movl	%edx, %eax
LBB0_8:
	movq	16(%r13), %rcx
	movslq	%eax, %rsi
	movq	(%rcx,%rsi,8), %r15
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_netdev_get_tx_queue
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_tx_timestamp
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	8(%r13), %r8
	addq	(%r12), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cpdma_chan_submit
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_cpsw_err
	incl	(%r14)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_tx_stop_queue
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	movq	%r15, %rdi
	callq	_cpdma_check_free_tx_desc
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_cpdma_check_free_tx_desc
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_netif_tx_stop_queue
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	movq	%r15, %rdi
	callq	_cpdma_check_free_tx_desc
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
LBB0_14:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_MIN_PACKET_SIZE,4,2       ## @CPSW_MIN_PACKET_SIZE
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet pad failed\n"

	.comm	_NET_XMIT_DROP,4,2              ## @NET_XMIT_DROP
	.comm	_SKBTX_HW_TSTAMP,4,2            ## @SKBTX_HW_TSTAMP
	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"desc submit failed\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.no_dead_strip	_cpsw_ndo_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_ndo_start_xmit
_cpsw_ndo_start_xmit:                   ; @cpsw_ndo_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x24, [x0, #16]
	ldr	x22, [x24, #24]
Lloh0:
	adrp	x8, _CPSW_MIN_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_MIN_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_skb_padto
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _tx_err@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_cpsw_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh8:
	adrp	x8, _NET_XMIT_DROP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NET_XMIT_DROP@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh10:
	adrp	x9, _SKBTX_HW_TSTAMP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SKBTX_HW_TSTAMP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_cpts_can_timestamp
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	orr	w8, w8, w22
	str	w8, [x0]
LBB0_6:
	mov	x0, x21
	bl	_skb_get_queue_mapping
	mov	x1, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.lt	LBB0_8
; %bb.7:
	sdiv	w9, w1, w8
	msub	w1, w9, w8, w1
LBB0_8:
	ldr	x8, [x24, #16]
	ldr	x23, [x8, w1, sxtw #3]
	mov	x0, x19
	bl	_netdev_get_tx_queue
	mov	x22, x0
	mov	x0, x21
	bl	_skb_tx_timestamp
	ldp	w3, w2, [x21]
	ldr	x8, [x20]
	ldr	x9, [x24, #8]
	add	x4, x9, x8
	mov	x0, x23
	mov	x1, x21
	bl	_cpdma_chan_submit
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.9:
Lloh16:
	adrp	x8, _tx_err@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_cpsw_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_netif_tx_stop_queue
	bl	_smp_mb__after_atomic
	mov	x0, x23
	bl	_cpdma_check_free_tx_desc
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_netif_tx_wake_queue
LBB0_11:
Lloh21:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	mov	x0, x23
	bl	_cpdma_check_free_tx_desc
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x22
	bl	_netif_tx_stop_queue
	bl	_smp_mb__after_atomic
	mov	x0, x23
	bl	_cpdma_check_free_tx_desc
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_netif_tx_wake_queue
LBB0_15:
Lloh23:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_MIN_PACKET_SIZE,4,2       ; @CPSW_MIN_PACKET_SIZE
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet pad failed\n"

	.comm	_NET_XMIT_DROP,4,2              ; @NET_XMIT_DROP
	.comm	_SKBTX_HW_TSTAMP,4,2            ; @SKBTX_HW_TSTAMP
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"desc submit failed\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.no_dead_strip	_cpsw_ndo_start_xmit
.subsections_via_symbols
