	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_set_coalesce              ## -- Begin function cpsw_set_coalesce
	.p2align	4, 0x90
_cpsw_set_coalesce:                     ## @cpsw_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	%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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %r13
	movl	(%rbx), %r12d
	movq	8(%r13), %rdi
	callq	_readl
	movl	%eax, %r15d
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	shll	$2, %ebx
	movq	_CPSW_CMINTMIN_INTVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r14d, %r12d
	cmovgl	%r12d, %r14d
	movq	_CPSW_CMINTMAX_INTVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1000, %ecx                     ## imm = 0x3E8
	cmpl	%esi, %r14d
	jle	LBB0_6
## %bb.3:
	movq	_CPSW_INTPRESCALE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ebx
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.5:
	imull	%eax, %ebx
	imull	%eax, %esi
	cmpl	%esi, %r14d
	cmovgel	%esi, %r14d
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	jmp	LBB0_6
LBB0_1:
	movq	_CPSW_INTPRESCALE_MASK@GOTPCREL(%rip), %rax
	movq	_CPSW_INTPACEEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movl	%r15d, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%esi, %r14d
LBB0_6:
	movl	%ecx, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r12d
	movq	8(%r13), %rsi
	addq	$8, %rsi
	movl	%eax, %edi
	callq	_writel
	movq	8(%r13), %rsi
	addq	$4, %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	_CPSW_INTPACEEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_CPSW_INTPRESCALE_MASK@GOTPCREL(%rip), %rax
	xorl	%r15d, %ebx
	andl	(%rax), %ebx
	xorl	%r15d, %ebx
	movl	%r14d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movq	8(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_cpsw_notice
	movl	%r12d, 4(%r13)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_INTPRESCALE_MASK,4,2      ## @CPSW_INTPRESCALE_MASK
	.comm	_CPSW_INTPACEEN,4,2             ## @CPSW_INTPACEEN
	.comm	_CPSW_CMINTMIN_INTVL,4,2        ## @CPSW_CMINTMIN_INTVL
	.comm	_CPSW_CMINTMAX_INTVL,4,2        ## @CPSW_CMINTMAX_INTVL
	.comm	_timer,4,2                      ## @timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set coalesce to %d usecs.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_set_coalesce              ; -- Begin function cpsw_set_coalesce
	.p2align	2
_cpsw_set_coalesce:                     ; @cpsw_set_coalesce
	.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	x22, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x0]
	ldr	w20, [x22]
	ldr	x0, [x23, #8]
	bl	_readl
	mov	x21, x0
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x23]
	lsl	w24, w8, #2
Lloh0:
	adrp	x8, _CPSW_CMINTMIN_INTVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_CMINTMIN_INTVL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	csel	w20, w20, w8, gt
Lloh3:
	adrp	x8, _CPSW_CMINTMAX_INTVL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPSW_CMINTMAX_INTVL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x25, _CPSW_INTPRESCALE_MASK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CPSW_INTPRESCALE_MASK@GOTPAGEOFF]
	cmp	w20, w9
	b.le	LBB0_5
; %bb.2:
	ldr	w8, [x25]
	sdiv	w10, w8, w24
	mov	w8, #1000
	cmp	w10, #2
	b.lt	LBB0_6
; %bb.3:
	mul	w24, w10, w24
	mul	w9, w10, w9
	cmp	w20, w9
	csel	w20, w20, w9, lt
	mul	w8, w10, w8
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _CPSW_INTPRESCALE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CPSW_INTPRESCALE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _CPSW_INTPACEEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CPSW_INTPACEEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w21, w8
	b	LBB0_8
LBB0_5:
	mov	w8, #1000
	b	LBB0_7
LBB0_6:
	mov	x20, x9
LBB0_7:
	ldr	x9, [x23, #8]
	add	x1, x9, #8
	sdiv	w22, w8, w20
	mov	x0, x22
	bl	_writel
	ldr	x8, [x23, #8]
	add	x1, x8, #4
	mov	x0, x22
	bl	_writel
Lloh14:
	adrp	x8, _CPSW_INTPACEEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPSW_INTPACEEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w21
	ldr	w9, [x25]
	bic	w8, w8, w9
	and	w9, w9, w24
	orr	w0, w8, w9
LBB0_8:
	ldr	x1, [x23, #8]
	bl	_writel
Lloh17:
	adrp	x8, _timer@GOTPAGE
Lloh18:
	ldr	x8, [x8, _timer@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_cpsw_notice
	str	w20, [x23, #4]
	mov	w0, #0
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_INTPRESCALE_MASK,4,2      ; @CPSW_INTPRESCALE_MASK
	.comm	_CPSW_INTPACEEN,4,2             ; @CPSW_INTPACEEN
	.comm	_CPSW_CMINTMIN_INTVL,4,2        ; @CPSW_CMINTMIN_INTVL
	.comm	_CPSW_CMINTMAX_INTVL,4,2        ; @CPSW_CMINTMAX_INTVL
	.comm	_timer,4,2                      ; @timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set coalesce to %d usecs.\n"

.subsections_via_symbols
