	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$8, (%rsi)
	jl	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_wmb
	movq	_SGE_PF_KDOORBELL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MYPF_REG
	movl	%eax, %r15d
	movq	_DBPRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r12), %edi
	callq	_QID
	orl	%eax, %ebx
	movl	(%r12), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_PIDX
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_t4_write_reg
	andl	$7, (%r12)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_PF_KDOORBELL,4,2           ## @SGE_PF_KDOORBELL
	.comm	_DBPRIO,4,2                     ## @DBPRIO
	.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	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
	ldr	w8, [x1]
	cmp	w8, #8
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_wmb
Lloh0:
	adrp	x8, _SGE_PF_KDOORBELL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGE_PF_KDOORBELL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MYPF_REG
	mov	x21, x0
Lloh3:
	adrp	x8, _DBPRIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBPRIO@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	w0, [x19, #4]
	bl	_QID
	orr	w22, w0, w22
	ldr	w8, [x19]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_PIDX
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x21
	bl	_t4_write_reg
	ldr	w8, [x19]
	and	w8, w8, #0x7
	str	w8, [x19]
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_PF_KDOORBELL,4,2           ; @SGE_PF_KDOORBELL
	.comm	_DBPRIO,4,2                     ; @DBPRIO
	.no_dead_strip	_ring_fl_db
.subsections_via_symbols
