	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_ioread_stop
_pvr2_ioread_stop:                      ## @pvr2_ioread_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_PVR2_TRACE_START_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_pvr2_trace
	movl	64(%rbx), %edi
	callq	_pvr2_stream_kill
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	_PVR2_TRACE_DATA_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_pvr2_trace
	movq	$0, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_START_STOP,4,2      ## @PVR2_TRACE_START_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/*---TRACE_READ---*/ pvr2_ioread_stop id=%p"

	.comm	_PVR2_TRACE_DATA_FLOW,4,2       ## @PVR2_TRACE_DATA_FLOW
L_.str.1:                               ## @.str.1
	.asciz	"/*---TRACE_READ---*/ sync_state <== 0"

	.no_dead_strip	_pvr2_ioread_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_ioread_stop
_pvr2_ioread_stop:                      ; @pvr2_ioread_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _PVR2_TRACE_START_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_TRACE_START_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
	ldr	w0, [x19, #64]
	bl	_pvr2_stream_kill
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
	str	xzr, [x19, #56]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _PVR2_TRACE_DATA_FLOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PVR2_TRACE_DATA_FLOW@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pvr2_trace
	str	xzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_START_STOP,4,2      ; @PVR2_TRACE_START_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/*---TRACE_READ---*/ pvr2_ioread_stop id=%p"

	.comm	_PVR2_TRACE_DATA_FLOW,4,2       ; @PVR2_TRACE_DATA_FLOW
l_.str.1:                               ; @.str.1
	.asciz	"/*---TRACE_READ---*/ sync_state <== 0"

	.no_dead_strip	_pvr2_ioread_stop
.subsections_via_symbols
