	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_ethtool_set_coalesce
_mvpp2_ethtool_set_coalesce:            ## @mvpp2_ethtool_set_coalesce
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	movl	12(%r14), %eax
	movl	%eax, 4(%r12)
	movl	8(%r14), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mvpp2_rx_pkts_coal_set
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mvpp2_rx_time_coal_set
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %eax
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	callq	_mvpp2_tx_time_coal_set
LBB0_5:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movl	(%r14), %ecx
	movl	%ecx, (%rsi)
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_mvpp2_tx_pkts_coal_set
	movl	4(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mvpp2_ethtool_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_ethtool_set_coalesce
_mvpp2_ethtool_set_coalesce:            ; @mvpp2_ethtool_set_coalesce
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x21, [x8, x22, lsl #3]
	ldr	d0, [x19, #8]
	str	d0, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_mvpp2_rx_pkts_coal_set
	mov	x0, x20
	mov	x1, x21
	bl	_mvpp2_rx_time_coal_set
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	str	w8, [x20, #24]
	mov	x0, x20
	bl	_mvpp2_tx_time_coal_set
LBB0_5:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x10, x9, [x20, #8]
	ldr	x1, [x9, x21, lsl #3]
	ldr	w9, [x19]
	str	w9, [x1]
	cbz	x10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_mvpp2_tx_pkts_coal_set
	ldr	w8, [x20, #4]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mvpp2_ethtool_set_coalesce
.subsections_via_symbols
