	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_buffer_remove
_pvr2_buffer_remove:                    ## @pvr2_buffer_remove
	.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	%rdi, %r15
	movq	16(%rdi), %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %r12
	addq	$4, %r12
	leaq	4(%r15), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	16(%rbx), %rcx
	addq	$20, %rbx
	leaq	8(%r15), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	8(%rbx), %rcx
	addq	$12, %rbx
	leaq	4(%r15), %rax
LBB0_6:
	movq	%rbx, %r12
	movq	%rcx, %rbx
LBB0_7:
	movl	(%rax), %r14d
	leaq	12(%r15), %rdi
	callq	_list_del_init
	decl	(%rbx)
	subl	%r14d, (%r12)
	movq	_PVR2_TRACE_BUF_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_pvr2_buffer_state_decode
	movl	(%r12), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_pvr2_trace
	movq	_pvr2_buffer_state_none@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_BUF_FLOW,4,2        ## @PVR2_TRACE_BUF_FLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/*---TRACE_FLOW---*/ bufferPool\t%8s dec cap=%07d cnt=%02d"

	.comm	_pvr2_buffer_state_none,4,2     ## @pvr2_buffer_state_none
	.no_dead_strip	_pvr2_buffer_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_buffer_remove
_pvr2_buffer_remove:                    ; @pvr2_buffer_remove
	.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	x19, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.3:
	add	x22, x21, #4
	b	LBB0_6
LBB0_4:
	add	x22, x21, #20
	add	x21, x21, #16
	add	x8, x19, #8
	b	LBB0_7
LBB0_5:
	add	x22, x21, #12
	add	x21, x21, #8
LBB0_6:
	add	x8, x19, #4
LBB0_7:
	ldr	w20, [x8]
	add	x0, x19, #12
	bl	_list_del_init
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	ldr	w8, [x22]
	sub	w8, w8, w20
	str	w8, [x22]
Lloh0:
	adrp	x8, _PVR2_TRACE_BUF_FLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_TRACE_BUF_FLOW@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_pvr2_buffer_state_decode
	mov	x2, x0
	ldr	w3, [x22]
	ldr	w4, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_pvr2_trace
Lloh5:
	adrp	x8, _pvr2_buffer_state_none@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pvr2_buffer_state_none@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_8:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_BUF_FLOW,4,2        ; @PVR2_TRACE_BUF_FLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/*---TRACE_FLOW---*/ bufferPool\t%8s dec cap=%07d cnt=%02d"

	.comm	_pvr2_buffer_state_none,4,2     ; @pvr2_buffer_state_none
	.no_dead_strip	_pvr2_buffer_remove
.subsections_via_symbols
