	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SA5_performant_completed
_SA5_performant_completed:              ## @SA5_performant_completed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SA5_OUTDB_STATUS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	32(%rbx), %rdi
	callq	_readl
	cmpq	$0, 48(%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 40(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_SA5_OUTDB_CLEAR_PERF_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SA5_OUTDB_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rdi
	addq	32(%rbx), %rdi
	callq	_readl
LBB0_3:
	movq	(%rbx), %rdx
	movslq	(%rdx), %rax
	movl	%eax, %esi
	andl	$1, %esi
	movl	8(%rbx), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_5
## %bb.4:
	addq	$4, %rdx
	movq	%rdx, (%rbx)
	decl	28(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	_FIFO_EMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	16(%rbx), %rsi
	movslq	24(%rbx), %rdi
	leaq	(%rsi,%rdi,8), %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_8
## %bb.7:
	movq	%rsi, (%rbx)
	xorl	$1, %ecx
	movl	%ecx, 8(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_EMPTY,8,3                 ## @FIFO_EMPTY
	.comm	_SA5_OUTDB_STATUS,8,3           ## @SA5_OUTDB_STATUS
	.comm	_SA5_OUTDB_CLEAR_PERF_BIT,4,2   ## @SA5_OUTDB_CLEAR_PERF_BIT
	.comm	_SA5_OUTDB_CLEAR,8,3            ## @SA5_OUTDB_CLEAR
	.no_dead_strip	_SA5_performant_completed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SA5_performant_completed
_SA5_performant_completed:              ; @SA5_performant_completed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x20, _SA5_OUTDB_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SA5_OUTDB_STATUS@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _SA5_OUTDB_CLEAR_PERF_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SA5_OUTDB_CLEAR_PERF_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
Lloh5:
	adrp	x9, _SA5_OUTDB_CLEAR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SA5_OUTDB_CLEAR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #32]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
LBB0_3:
	ldr	x9, [x19]
	ldrsw	x0, [x9]
	and	w10, w0, #0x1
	ldr	w8, [x19, #8]
	cmp	w10, w8
	b.ne	LBB0_5
; %bb.4:
	add	x9, x9, #4
	str	x9, [x19]
	ldr	w10, [x19, #28]
	sub	w10, w10, #1
	str	w10, [x19, #28]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x10, _FIFO_EMPTY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FIFO_EMPTY@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x10]
LBB0_6:
	ldr	x10, [x19, #16]
	ldrsw	x11, [x19, #24]
	add	x11, x10, x11, lsl #3
	cmp	x9, x11
	b.ne	LBB0_8
; %bb.7:
	str	x10, [x19]
	eor	w8, w8, #0x1
	str	w8, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_FIFO_EMPTY,8,3                 ; @FIFO_EMPTY
	.comm	_SA5_OUTDB_STATUS,8,3           ; @SA5_OUTDB_STATUS
	.comm	_SA5_OUTDB_CLEAR_PERF_BIT,4,2   ; @SA5_OUTDB_CLEAR_PERF_BIT
	.comm	_SA5_OUTDB_CLEAR,8,3            ; @SA5_OUTDB_CLEAR
	.no_dead_strip	_SA5_performant_completed
.subsections_via_symbols
