	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_xmit
_mv643xx_eth_xmit:                      ## @mv643xx_eth_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, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_skb_get_queue_mapping
	movq	(%rbx), %rbx
	movslq	%eax, %rsi
	leaq	(%rsi,%rsi,4), %r15
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_netdev_get_tx_queue
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_has_tiny_unaligned_frags
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	___skb_linearize
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	16(%rbx,%r15,4)
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r13
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rsi
	callq	_dev_printk
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_3:
	leaq	(%rbx,%r15,4), %rdi
	movl	(%rdi), %eax
	subl	4(%rbx,%r15,4), %eax
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_4
## %bb.7:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_txq_submit_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	(%r14), %eax
	addl	%eax, 12(%rbx,%r15,4)
	leaq	(%rbx,%r15,4), %rax
	addq	$4, %rax
	incl	8(%rbx,%r15,4)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r13)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	subl	(%rax), %ecx
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_stop_queue
	jmp	LBB0_10
LBB0_4:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r13
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rsi
	callq	_dev_printk
LBB0_6:
	movq	%r14, %rdi
	callq	_kfree_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r12
LBB0_10:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to linearize skb with tiny unaligned fragment\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"tx queue full?!\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_mv643xx_eth_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_xmit
_mv643xx_eth_xmit:                      ; @mv643xx_eth_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x22, x0
	ldr	x23, [x21]
	sxtw	x24, w22
	mov	x0, x19
	mov	x1, x22
	bl	_netdev_get_tx_queue
	mov	x21, x0
	mov	x0, x20
	bl	_has_tiny_unaligned_frags
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	___skb_linearize
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #20
	madd	x8, x24, x8, x23
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
Lloh0:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_printk
Lloh5:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	w8, #20
	smaddl	x22, w22, w8, x23
	mov	w8, #20
	madd	x25, x24, x8, x23
	ldr	w8, [x25, #4]!
	ldr	w9, [x22]
Lloh7:
	adrp	x26, _MAX_SKB_FRAGS@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MAX_SKB_FRAGS@GOTPAGEOFF]
	ldr	w10, [x26]
	sub	w8, w9, w8
	cmp	w8, w10
	b.le	LBB0_7
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_txq_submit_skb
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w8, [x20]
	mov	w9, #20
	madd	x9, x24, x9, x23
	ldp	w11, w10, [x9, #8]
	add	w8, w10, w8
	add	w10, w11, #1
	stp	w10, w8, [x9, #8]
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w8, [x22]
	ldr	w9, [x25]
	ldr	w10, [x26]
	sub	w8, w8, w9
	cmp	w8, w10
	b.gt	LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_netif_tx_stop_queue
	b	LBB0_10
LBB0_7:
	bl	_net_ratelimit
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x19, #4
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_dev_printk
LBB0_9:
	mov	x0, x20
	bl	_kfree_skb
LBB0_10:
Lloh17:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to linearize skb with tiny unaligned fragment\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"tx queue full?!\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_mv643xx_eth_xmit
.subsections_via_symbols
