	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vgpu_scan_nonprivbb_set
_vgpu_scan_nonprivbb_set:               ## @vgpu_scan_nonprivbb_set
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_I915_NUM_ENGINES@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$-1, %r13d
	shll	%cl, %r13d
	notl	%r13d
	andl	%esi, %r13d
	cmpl	%r13d, (%rdi)
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-176(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%rax,%rbp), %r15
	addq	$-176, %r15
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	notl	%esi
	andl	%esi, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %ecx
	andl	%r13d, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdx), %ecx
	movq	%r15, %rdi
	movl	$4, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	cltq
	addq	%rax, %r15
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_10:
	testl	%r13d, %r13d
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_11
LBB0_12:
	movups	L_.str.2+10(%rip), %xmm0
	movups	%xmm0, 10(%r15)
	movups	L_.str.2(%rip), %xmm0
	movups	%xmm0, (%r15)
	jmp	LBB0_13
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_11:
	xorl	%r13d, %r13d
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	leaq	-176(%rbp), %rsi
	callq	_pr_warn
LBB0_14:
	movl	%r13d, (%rbx)
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_NUM_ENGINES,4,2           ## @I915_NUM_ENGINES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gvt: vgpu %d turns on non-privileged batch buffers scanning on Engines:"

L_.str.1:                               ## @.str.1
	.asciz	"%d, "

L_.str.2:                               ## @.str.2
	.asciz	"low performance expected."

L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

	.no_dead_strip	_vgpu_scan_nonprivbb_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vgpu_scan_nonprivbb_set
_vgpu_scan_nonprivbb_set:               ; @vgpu_scan_nonprivbb_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _I915_NUM_ENGINES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _I915_NUM_ENGINES@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w22, w1, w8
	ldr	w8, [x0]
	cmp	w8, w22
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x0
	cbz	w22, LBB0_11
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x24, [x8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x25, #0
	mov	w26, #1
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bic	w22, w22, w10
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, uxtw
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x9, [x9, x25, lsl #3]
	lsl	w10, w26, w25
	and	w11, w10, w22
	cmp	x9, #0
	ccmp	w11, #0, #4, ne
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x9]
	mov	x0, x20
	mov	w1, #4
	mov	x2, x21
	bl	_snprintf
	add	x20, x20, w0, sxtw
	ldr	w8, [x23]
	b	LBB0_5
LBB0_8:
	cbz	w22, LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	q0, [x8]
	ldur	q1, [x8, #10]
	stur	q1, [x20, #10]
	str	q0, [x20]
LBB0_10:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #8
	bl	_pr_warn
LBB0_11:
	str	w22, [x19]
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_NUM_ENGINES,4,2           ; @I915_NUM_ENGINES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gvt: vgpu %d turns on non-privileged batch buffers scanning on Engines:"

l_.str.1:                               ; @.str.1
	.asciz	"%d, "

l_.str.2:                               ; @.str.2
	.asciz	"low performance expected."

l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

	.no_dead_strip	_vgpu_scan_nonprivbb_set
.subsections_via_symbols
