	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_calculate_equal_fifo
_xgbe_calculate_equal_fifo:             ## @xgbe_calculate_equal_fifo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rcx
	movl	%edi, %eax
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	divl	%esi
	movq	_XGMAC_FIFO_UNIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpl	%eax, %edi
	ja	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r9d
	decl	%r9d
LBB0_2:
	testl	%esi, %esi
	je	LBB0_14
## %bb.3:
	movl	%esi, %eax
	cmpl	$8, %esi
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$7, %r8d
	cmpq	$56, %rdi
	jae	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_7:
	andq	$-8, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	%xmm0, 16(%rcx,%rdi,4)
	movdqu	%xmm0, 32(%rcx,%rdi,4)
	movdqu	%xmm0, 48(%rcx,%rdi,4)
	movdqu	%xmm0, 64(%rcx,%rdi,4)
	movdqu	%xmm0, 80(%rcx,%rdi,4)
	movdqu	%xmm0, 96(%rcx,%rdi,4)
	movdqu	%xmm0, 112(%rcx,%rdi,4)
	movdqu	%xmm0, 128(%rcx,%rdi,4)
	movdqu	%xmm0, 144(%rcx,%rdi,4)
	movdqu	%xmm0, 160(%rcx,%rdi,4)
	movdqu	%xmm0, 176(%rcx,%rdi,4)
	movdqu	%xmm0, 192(%rcx,%rdi,4)
	movdqu	%xmm0, 208(%rcx,%rdi,4)
	movdqu	%xmm0, 224(%rcx,%rdi,4)
	movdqu	%xmm0, 240(%rcx,%rdi,4)
	addq	$64, %rdi
	addq	$-8, %rsi
	jne	LBB0_8
LBB0_9:
	testq	%r8, %r8
	je	LBB0_12
## %bb.10:
	leaq	(%rcx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rsi,%rdi)
	movdqu	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_11
LBB0_12:
	cmpq	%rax, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r9d, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_13
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_FIFO_UNIT,4,2            ## @XGMAC_FIFO_UNIT
	.no_dead_strip	_xgbe_calculate_equal_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_calculate_equal_fifo
_xgbe_calculate_equal_fifo:             ; @xgbe_calculate_equal_fifo
	.cfi_startproc
; %bb.0:
	udiv	w8, w0, w1
Lloh0:
	adrp	x9, _XGMAC_FIFO_UNIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XGMAC_FIFO_UNIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ls	LBB0_2
; %bb.1:
	mov	w8, #0
	cbnz	w1, LBB0_3
	b	LBB0_10
LBB0_2:
	udiv	w8, w8, w9
	sub	w8, w8, #1
	cbz	w1, LBB0_10
LBB0_3:
	mov	w9, w1
	cmp	w1, #16
	b.hs	LBB0_5
; %bb.4:
	mov	x10, #0
	b	LBB0_8
LBB0_5:
	and	x10, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x11, x2, #32
	mov	x12, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_8:
	add	x11, x2, x10, lsl #2
	sub	x9, x9, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XGMAC_FIFO_UNIT,4,2            ; @XGMAC_FIFO_UNIT
	.no_dead_strip	_xgbe_calculate_equal_fifo
.subsections_via_symbols
