	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_context_thread_func
_pvr2_context_thread_func:              ## @pvr2_context_thread_func
	.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	_PVR2_TRACE_CTXT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_pvr2_trace
	movq	_pvr2_context_notify_first@GOTPCREL(%rip), %r12
	movq	_pvr2_context_sync_data@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pvr2_context_set_notify
	movq	%rbx, %rdi
	callq	_pvr2_context_check
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_pvr2_context_shutok
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	xorl	%eax, %eax
	callq	_pvr2_context_shutok
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_pvr2_context_cleaned_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_pvr2_context_cleanup_data@GOTPCREL(%rip), %rdi
	callq	_wake_up
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_pvr2_trace
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wait_event_interruptible
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pvr2_trace
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_CTXT,4,2            ## @PVR2_TRACE_CTXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pvr2_context thread start"

	.comm	_pvr2_context_notify_first,8,3  ## @pvr2_context_notify_first
	.comm	_pvr2_context_sync_data,4,2     ## @pvr2_context_sync_data
	.comm	_pvr2_context_cleaned_flag,4,2  ## @pvr2_context_cleaned_flag
	.comm	_pvr2_context_cleanup_data,4,2  ## @pvr2_context_cleanup_data
L_.str.1:                               ## @.str.1
	.asciz	"pvr2_context thread cleaned up"

L_.str.2:                               ## @.str.2
	.asciz	"pvr2_context thread end"

	.no_dead_strip	_pvr2_context_thread_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_context_thread_func
_pvr2_context_thread_func:              ; @pvr2_context_thread_func
	.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
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
	bl	_pvr2_trace
Lloh4:
	adrp	x22, _pvr2_context_notify_first@GOTPAGE
Lloh5:
	ldr	x22, [x22, _pvr2_context_notify_first@GOTPAGEOFF]
Lloh6:
	adrp	x21, _pvr2_context_sync_data@GOTPAGE
Lloh7:
	ldr	x21, [x21, _pvr2_context_sync_data@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_pvr2_context_set_notify
	mov	x0, x19
	bl	_pvr2_context_check
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x22]
	cbnz	x19, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [x21]
	bl	_pvr2_context_shutok
	cmp	x0, #0
	cset	w1, ne
	mov	x0, x19
	bl	_wait_event_interruptible
	bl	_pvr2_context_shutok
	cbz	x0, LBB0_2
; %bb.4:
Lloh8:
	adrp	x8, _pvr2_context_cleaned_flag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pvr2_context_cleaned_flag@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
Lloh11:
	adrp	x0, _pvr2_context_cleanup_data@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pvr2_context_cleanup_data@GOTPAGEOFF]
	bl	_wake_up
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pvr2_trace
	ldr	w19, [x21]
	bl	_kthread_should_stop
	mov	x1, x0
	mov	x0, x19
	bl	_wait_event_interruptible
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pvr2_trace
	mov	w0, #0
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, 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 thread start"

	.comm	_pvr2_context_notify_first,8,3  ; @pvr2_context_notify_first
	.comm	_pvr2_context_sync_data,4,2     ; @pvr2_context_sync_data
	.comm	_pvr2_context_cleaned_flag,4,2  ; @pvr2_context_cleaned_flag
	.comm	_pvr2_context_cleanup_data,4,2  ; @pvr2_context_cleanup_data
l_.str.1:                               ; @.str.1
	.asciz	"pvr2_context thread cleaned up"

l_.str.2:                               ; @.str.2
	.asciz	"pvr2_context thread end"

	.no_dead_strip	_pvr2_context_thread_func
.subsections_via_symbols
