	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_get_coalesce
_bcmgenet_get_coalesce:                 ## @bcmgenet_get_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, %rbx
	movq	_DESC_INDEX@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_DMA_MBUF_DONE_THRESH@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rax, %rdi
	callq	_bcmgenet_tdma_ring_readl
	movl	%eax, 12(%r14)
	movq	(%r15), %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_rdma_ring_readl
	movl	%eax, 8(%r14)
	movq	_DMA_RING16_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_rdma_readl
	shll	$13, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	4(%r14), %esi
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.1:
	cmpl	$8, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_3:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%esi, %xmm0
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %ebx
	andl	$3, %ebx
	cmpq	$24, %rdi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm2
	por	%xmm0, %xmm2
	movdqu	16(%rax,%rdi,4), %xmm0
	por	%xmm1, %xmm0
	movdqu	32(%rax,%rdi,4), %xmm1
	movdqu	48(%rax,%rdi,4), %xmm3
	movdqu	64(%rax,%rdi,4), %xmm4
	por	%xmm1, %xmm4
	por	%xmm2, %xmm4
	movdqu	80(%rax,%rdi,4), %xmm2
	por	%xmm3, %xmm2
	por	%xmm0, %xmm2
	movdqu	96(%rax,%rdi,4), %xmm0
	por	%xmm4, %xmm0
	movdqu	112(%rax,%rdi,4), %xmm1
	por	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_6
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	leaq	(%rax,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	por	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	por	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rbx
	jne	LBB0_9
LBB0_10:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rcx, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	orl	(%rax,%rdx,4), %esi
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_11
LBB0_12:
	movq	(%r15), %rcx
	orl	(%rax,%rcx,4), %esi
	movl	%esi, 4(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_INDEX,8,3                 ## @DESC_INDEX
	.comm	_DMA_MBUF_DONE_THRESH,4,2       ## @DMA_MBUF_DONE_THRESH
	.comm	_DMA_RING16_TIMEOUT,4,2         ## @DMA_RING16_TIMEOUT
	.no_dead_strip	_bcmgenet_get_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_get_coalesce
_bcmgenet_get_coalesce:                 ; @bcmgenet_get_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
Lloh0:
	adrp	x21, _DESC_INDEX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DESC_INDEX@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh2:
	adrp	x22, _DMA_MBUF_DONE_THRESH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DMA_MBUF_DONE_THRESH@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_bcmgenet_tdma_ring_readl
	str	w0, [x19, #12]
	ldr	x1, [x21]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_bcmgenet_rdma_ring_readl
	str	w0, [x19, #8]
Lloh4:
	adrp	x8, _DMA_RING16_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_RING16_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bcmgenet_rdma_readl
	lsl	w8, w0, #13
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x19]
	ldp	x8, x9, [x20]
	ldr	w9, [x9]
	ldr	w11, [x19, #4]
	cbz	w9, LBB0_8
; %bb.1:
	cmp	w9, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x9, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w11
	add	x11, x8, #32
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	orr.16b	v1, v1, v4
	orr.16b	v0, v0, v5
	orr.16b	v2, v2, v6
	orr.16b	v3, v3, v7
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	orr.16b	v0, v0, v1
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	add	x12, x8, x10, lsl #2
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x12], #4
	orr	w11, w11, w10
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	orr	w8, w11, w8
	str	w8, [x19, #4]
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_INDEX,8,3                 ; @DESC_INDEX
	.comm	_DMA_MBUF_DONE_THRESH,4,2       ; @DMA_MBUF_DONE_THRESH
	.comm	_DMA_RING16_TIMEOUT,4,2         ; @DMA_RING16_TIMEOUT
	.no_dead_strip	_bcmgenet_get_coalesce
.subsections_via_symbols
