	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_context_check
_pvr2_context_check:                    ## @pvr2_context_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_PVR2_TRACE_CTXT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_pvr2_trace
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_2
LBB0_6:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_10:
	cmpq	$0, 16(%r15)
	je	LBB0_12
## %bb.11:
	cmpq	$0, 8(%r15)
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	*%rax
	jmp	LBB0_9
LBB0_13:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pvr2_context_destroy           ## TAILCALL
LBB0_2:
	movl	$1, (%r15)
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_pvr2_trace
	movl	32(%r15), %edi
	movq	_pvr2_context_notify@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdx
	callq	_pvr2_hdw_initialize
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	32(%r15), %edi
	callq	_pvr2_hdw_get_video_stream
	movl	%eax, 36(%r15)
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	*%rax
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_pvr2_trace
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_CTXT,4,2            ## @PVR2_TRACE_CTXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pvr2_context %p (notify)"

L_.str.1:                               ## @.str.1
	.asciz	"pvr2_context %p (initialize)"

	.comm	_pvr2_context_notify,8,3        ## @pvr2_context_notify
L_.str.2:                               ## @.str.2
	.asciz	"pvr2_context %p (thread skipping setup)"

	.no_dead_strip	_pvr2_context_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_context_check
_pvr2_context_check:                    ; @pvr2_context_check
	.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
Lloh0:
	adrp	x20, _PVR2_TRACE_CTXT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PVR2_TRACE_CTXT@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pvr2_trace
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
LBB0_2:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_7
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	cbz	x20, LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x20, [x0]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	blr	x8
	b	LBB0_6
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pvr2_context_destroy
LBB0_10:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pvr2_trace
	ldr	w0, [x19, #32]
Lloh6:
	adrp	x8, _pvr2_context_notify@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pvr2_context_notify@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x2, x19
	bl	_pvr2_hdw_initialize
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x19, #32]
	bl	_pvr2_hdw_get_video_stream
	str	w0, [x19, #36]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.12:
	mov	x0, x19
	blr	x8
	b	LBB0_2
LBB0_13:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_pvr2_trace
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_CTXT,4,2            ; @PVR2_TRACE_CTXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pvr2_context %p (notify)"

l_.str.1:                               ; @.str.1
	.asciz	"pvr2_context %p (initialize)"

	.comm	_pvr2_context_notify,8,3        ; @pvr2_context_notify
l_.str.2:                               ; @.str.2
	.asciz	"pvr2_context %p (thread skipping setup)"

	.no_dead_strip	_pvr2_context_check
.subsections_via_symbols
