	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_set_nonprio_fifos
_xgbe_set_nonprio_fifos:                ## @xgbe_set_nonprio_fifos
	.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	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_XGMAC_FIFO_MIN_ALLOC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_BUILD_BUG_ON_NOT_POWER_OF_2
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%r15d, %esi
	jae	LBB0_6
## %bb.1:
	movl	%r15d, %r8d
	movl	(%r12), %eax
	subl	%esi, %r15d
	movq	%rsi, %rcx
	notq	%rcx
	testb	$1, %r15b
	je	LBB0_3
## %bb.2:
	movq	_XGMAC_FIFO_UNIT@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	decl	%eax
	movl	%eax, (%r14,%rsi,4)
	movl	(%r12), %eax
	subl	%eax, %ebx
	incq	%rsi
LBB0_3:
	addq	%r8, %rcx
	je	LBB0_6
## %bb.4:
	movq	_XGMAC_FIFO_UNIT@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cltd
	idivl	(%rdi)
	decl	%eax
	movl	%eax, (%r14,%rsi,4)
	movl	(%r12), %ecx
	movl	%ecx, %eax
	cltd
	idivl	(%rdi)
	decl	%eax
	movl	%eax, 4(%r14,%rsi,4)
	movl	(%r12), %eax
	addl	%eax, %ecx
	subl	%ecx, %ebx
	addq	$2, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_5
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_FIFO_MIN_ALLOC,4,2       ## @XGMAC_FIFO_MIN_ALLOC
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.comm	_XGMAC_FIFO_UNIT,4,2            ## @XGMAC_FIFO_UNIT
	.no_dead_strip	_xgbe_set_nonprio_fifos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_set_nonprio_fifos
_xgbe_set_nonprio_fifos:                ; @xgbe_set_nonprio_fifos
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _XGMAC_FIFO_MIN_ALLOC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XGMAC_FIFO_MIN_ALLOC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BUILD_BUG_ON_NOT_POWER_OF_2
Lloh2:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	cmp	w9, w21
	b.hs	LBB0_3
; %bb.1:
	mov	w11, w21
	ldr	w10, [x22]
	add	x8, x20, x9, lsl #2
	sub	x9, x11, x9
Lloh5:
	adrp	x11, _XGMAC_FIFO_UNIT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _XGMAC_FIFO_UNIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	sdiv	w10, w10, w12
	sub	w10, w10, #1
	str	w10, [x8], #4
	ldr	w10, [x22]
	sub	w19, w19, w10
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XGMAC_FIFO_MIN_ALLOC,4,2       ; @XGMAC_FIFO_MIN_ALLOC
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.comm	_XGMAC_FIFO_UNIT,4,2            ; @XGMAC_FIFO_UNIT
	.no_dead_strip	_xgbe_set_nonprio_fifos
.subsections_via_symbols
