	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gvt_service_thread
_gvt_service_thread:                    ## @gvt_service_thread
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_gvt_dbg_core
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %r14
	movq	_INTEL_GVT_REQUEST_EMULATE_VBLANK@GOTPCREL(%rip), %r12
	movq	_INTEL_GVT_REQUEST_SCHED@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_intel_gvt_schedule
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %ebx
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15)
	setne	%cl
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %esi
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_WARN_ONCE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_intel_gvt_emulate_vblank
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_INTEL_GVT_REQUEST_EVENT_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"service thread start\n"

L_.str.1:                               ## @.str.1
	.asciz	"service thread is waken up by signal.\n"

	.comm	_INTEL_GVT_REQUEST_EMULATE_VBLANK,4,2 ## @INTEL_GVT_REQUEST_EMULATE_VBLANK
	.comm	_INTEL_GVT_REQUEST_SCHED,4,2    ## @INTEL_GVT_REQUEST_SCHED
	.comm	_INTEL_GVT_REQUEST_EVENT_SCHED,4,2 ## @INTEL_GVT_REQUEST_EVENT_SCHED
	.no_dead_strip	_gvt_service_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gvt_service_thread
_gvt_service_thread:                    ; @gvt_service_thread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_dbg_core
	bl	_kthread_should_stop
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, _INTEL_GVT_REQUEST_EMULATE_VBLANK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _INTEL_GVT_REQUEST_EMULATE_VBLANK@GOTPAGEOFF]
Lloh6:
	adrp	x23, _INTEL_GVT_REQUEST_SCHED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _INTEL_GVT_REQUEST_SCHED@GOTPAGEOFF]
Lloh8:
	adrp	x24, _INTEL_GVT_REQUEST_EVENT_SCHED@GOTPAGE
Lloh9:
	ldr	x24, [x24, _INTEL_GVT_REQUEST_EVENT_SCHED@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_intel_gvt_schedule
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #8]
	bl	_kthread_should_stop
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w1, ne
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_wait_event_interruptible
	mov	x21, x0
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_WARN_ONCE
	cbnz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_clear_bit
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_intel_gvt_emulate_vblank
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_3
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"service thread start\n"

l_.str.1:                               ; @.str.1
	.asciz	"service thread is waken up by signal.\n"

	.comm	_INTEL_GVT_REQUEST_EMULATE_VBLANK,4,2 ; @INTEL_GVT_REQUEST_EMULATE_VBLANK
	.comm	_INTEL_GVT_REQUEST_SCHED,4,2    ; @INTEL_GVT_REQUEST_SCHED
	.comm	_INTEL_GVT_REQUEST_EVENT_SCHED,4,2 ; @INTEL_GVT_REQUEST_EVENT_SCHED
	.no_dead_strip	_gvt_service_thread
.subsections_via_symbols
