	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function submit_context
_submit_context:                        ## @submit_context
	.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
	movl	%ecx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_intel_vgpu_create_workload
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_prepare_execlist_workload@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_complete_execlist_workload@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r14d, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 4(%rbx)
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_gvt_dbg_el
	movq	%rbx, %rdi
	callq	_intel_vgpu_queue_workload
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prepare_execlist_workload,4,2  ## @prepare_execlist_workload
	.comm	_complete_execlist_workload,4,2 ## @complete_execlist_workload
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"workload %p emulate schedule_in %d\n"

	.no_dead_strip	_submit_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function submit_context
_submit_context:                        ; @submit_context
	.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
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	bl	_intel_vgpu_create_workload
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _prepare_execlist_workload@GOTPAGE
Lloh1:
	ldr	x8, [x8, _prepare_execlist_workload@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _complete_execlist_workload@GOTPAGE
Lloh4:
	ldr	x9, [x9, _complete_execlist_workload@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	str	w19, [x20]
	cbz	w19, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	ldr	w8, [x8, w21, sxtw #2]
	str	w8, [x20, #4]
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_gvt_dbg_el
	mov	x0, x20
	bl	_intel_vgpu_queue_workload
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_prepare_execlist_workload,4,2  ; @prepare_execlist_workload
	.comm	_complete_execlist_workload,4,2 ; @complete_execlist_workload
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"workload %p emulate schedule_in %d\n"

	.no_dead_strip	_submit_context
.subsections_via_symbols
