	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_fl_db
_ring_fl_db:                            ## @ring_fl_db
	.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
	movl	(%rsi), %eax
	movq	_FL_PER_EQ_UNIT@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jl	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rdi), %r12d
	movl	(%rdi), %edi
	callq	_is_t4
	movq	%rax, %rcx
	movl	(%r15), %eax
	cltd
	idivl	(%r13)
	movl	%eax, %edi
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	callq	_PIDX_V
	jmp	LBB0_4
LBB0_3:
	callq	_PIDX_T5_V
LBB0_4:
	movl	%eax, %ebx
	orl	%r12d, %ebx
	xorl	%eax, %eax
	callq	_wmb
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_T4VF_SGE_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	_SGE_VF_KDOORBELL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	addq	(%rax), %r12
	movl	20(%r15), %edi
	callq	_QID_V
	orl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_t4_write_reg
	jmp	LBB0_7
LBB0_6:
	movl	16(%r15), %edi
	callq	_QID_V
	orl	%eax, %ebx
	movq	_SGE_UDB_KDOORBELL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
LBB0_7:
	movl	(%r15), %eax
	cltd
	idivl	(%r13)
	movl	%edx, (%r15)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_PER_EQ_UNIT,4,2             ## @FL_PER_EQ_UNIT
	.comm	_T4VF_SGE_BASE_ADDR,8,3         ## @T4VF_SGE_BASE_ADDR
	.comm	_SGE_VF_KDOORBELL,8,3           ## @SGE_VF_KDOORBELL
	.comm	_SGE_UDB_KDOORBELL,4,2          ## @SGE_UDB_KDOORBELL
	.no_dead_strip	_ring_fl_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_fl_db
_ring_fl_db:                            ; @ring_fl_db
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x22, _FL_PER_EQ_UNIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FL_PER_EQ_UNIT@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldp	w0, w21, [x0]
	bl	_is_t4
	mov	x8, x0
	ldr	w9, [x19]
	ldr	w10, [x22]
	sdiv	w0, w9, w10
	cbz	x8, LBB0_3
; %bb.2:
	bl	_PIDX_V
	b	LBB0_4
LBB0_3:
	bl	_PIDX_T5_V
LBB0_4:
	orr	w23, w0, w21
	bl	_wmb
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _T4VF_SGE_BASE_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _T4VF_SGE_BASE_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _SGE_VF_KDOORBELL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SGE_VF_KDOORBELL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x21, x9, x8
	ldr	w0, [x19, #20]
	bl	_QID_V
	orr	w2, w0, w23
	mov	x0, x20
	mov	x1, x21
	bl	_t4_write_reg
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_QID_V
	orr	w0, w0, w23
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _SGE_UDB_KDOORBELL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SGE_UDB_KDOORBELL@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_writel
	bl	_wmb
LBB0_7:
	ldr	w8, [x22]
	ldr	w9, [x19]
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_PER_EQ_UNIT,4,2             ; @FL_PER_EQ_UNIT
	.comm	_T4VF_SGE_BASE_ADDR,8,3         ; @T4VF_SGE_BASE_ADDR
	.comm	_SGE_VF_KDOORBELL,8,3           ; @SGE_VF_KDOORBELL
	.comm	_SGE_UDB_KDOORBELL,4,2          ; @SGE_UDB_KDOORBELL
	.no_dead_strip	_ring_fl_db
.subsections_via_symbols
