	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mock_engine                    ## -- Begin function mock_engine
	.p2align	4, 0x90
_mock_engine:                           ## @mock_engine
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_I915_NUM_ENGINES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%edx, (%rax)
	setle	%dil
	callq	_GEM_BUG_ON
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$96, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, 72(%rax)
	movq	%r12, 64(%rax)
	movl	60(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r15, %rcx
	callq	_snprintf
	movl	%r14d, (%rbx)
	movl	%r14d, %edi
	callq	_BIT
	movl	%eax, 56(%rbx)
	movl	%r14d, 4(%rbx)
	leaq	96(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	_mock_context_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_mock_request_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_mock_emit_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_mock_emit_breadcrumb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_mock_submit_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_mock_reset_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_mock_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_mock_reset_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_mock_cancel_requests@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	88(%rbx), %rdi
	callq	_spin_lock_init
	leaq	84(%rbx), %rdi
	movq	_hw_delay_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%rbx, %rdi
	addq	$80, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_intel_engine_add_user
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_NUM_ENGINES,4,2           ## @I915_NUM_ENGINES
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_mock_context_ops,4,2           ## @mock_context_ops
	.comm	_mock_request_alloc,4,2         ## @mock_request_alloc
	.comm	_mock_emit_flush,4,2            ## @mock_emit_flush
	.comm	_mock_emit_breadcrumb,4,2       ## @mock_emit_breadcrumb
	.comm	_mock_submit_request,4,2        ## @mock_submit_request
	.comm	_mock_reset_prepare,4,2         ## @mock_reset_prepare
	.comm	_mock_reset,4,2                 ## @mock_reset
	.comm	_mock_reset_finish,4,2          ## @mock_reset_finish
	.comm	_mock_cancel_requests,4,2       ## @mock_cancel_requests
	.comm	_hw_delay_complete,4,2          ## @hw_delay_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mock_engine                    ; -- Begin function mock_engine
	.p2align	2
_mock_engine:                           ; @mock_engine
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _I915_NUM_ENGINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_NUM_ENGINES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	cset	w0, le
	bl	_GEM_BUG_ON
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, #96
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	stp	x22, x22, [x19, #64]
	ldr	w0, [x19, #60]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x21
	bl	_snprintf
	str	w20, [x19]
	mov	x0, x20
	bl	_BIT
	str	w0, [x19, #56]
	add	x8, x19, #96
Lloh11:
	adrp	x9, _mock_context_ops@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mock_context_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #40]
Lloh13:
	adrp	x8, _mock_request_alloc@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mock_request_alloc@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #36]
Lloh16:
	adrp	x8, _mock_emit_flush@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mock_emit_flush@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _mock_emit_breadcrumb@GOTPAGE
Lloh20:
	ldr	x9, [x9, _mock_emit_breadcrumb@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
Lloh22:
	adrp	x8, _mock_submit_request@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mock_submit_request@GOTPAGEOFF]
Lloh24:
	adrp	x9, _mock_reset_prepare@GOTPAGE
Lloh25:
	ldr	x9, [x9, _mock_reset_prepare@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh28:
	adrp	x8, _mock_reset@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mock_reset@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _mock_reset_finish@GOTPAGE
Lloh32:
	ldr	x9, [x9, _mock_reset_finish@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh34:
	adrp	x8, _mock_cancel_requests@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mock_cancel_requests@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	add	x0, x19, #88
	stp	w20, w8, [x19, #4]
	bl	_spin_lock_init
	add	x0, x19, #84
Lloh37:
	adrp	x8, _hw_delay_complete@GOTPAGE
Lloh38:
	ldr	x8, [x8, _hw_delay_complete@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #80
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_intel_engine_add_user
LBB0_2:
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_NUM_ENGINES,4,2           ; @I915_NUM_ENGINES
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_mock_context_ops,4,2           ; @mock_context_ops
	.comm	_mock_request_alloc,4,2         ; @mock_request_alloc
	.comm	_mock_emit_flush,4,2            ; @mock_emit_flush
	.comm	_mock_emit_breadcrumb,4,2       ; @mock_emit_breadcrumb
	.comm	_mock_submit_request,4,2        ; @mock_submit_request
	.comm	_mock_reset_prepare,4,2         ; @mock_reset_prepare
	.comm	_mock_reset,4,2                 ; @mock_reset
	.comm	_mock_reset_finish,4,2          ; @mock_reset_finish
	.comm	_mock_cancel_requests,4,2       ; @mock_cancel_requests
	.comm	_hw_delay_complete,4,2          ; @hw_delay_complete
.subsections_via_symbols
