	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mock_context                   ## -- Begin function mock_context
	.p2align	4, 0x90
_mock_context:                          ## @mock_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	%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	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	leaq	36(%rax), %rdi
	callq	_kref_init
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, 24(%rbx)
	leaq	20(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_default_engines
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_RCU_INIT_POINTER
	leaq	16(%rbx), %rdi
	movl	(%r13), %esi
	callq	_INIT_RADIX_TREE
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_i915_gem_context_pin_hw_id
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_kstrdup
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mock_ppgtt
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	___set_ppgtt
	movq	%r14, %rdi
	callq	_i915_vm_put
	jmp	LBB0_11
LBB0_7:
	movl	(%rbx), %edi
	callq	_rcu_access_pointer
	movl	%eax, %edi
	callq	_free_engines
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_i915_gem_context_set_closed
	movq	%rbx, %rdi
	callq	_i915_gem_context_put
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mock_context                   ; -- Begin function mock_context
	.p2align	2
_mock_context:                          ; @mock_context
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, x19, #36
	bl	_kref_init
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	str	x21, [x19, #24]
	add	x0, x19, #20
	bl	_mutex_init
	mov	x0, x19
	bl	_default_engines
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_kfree
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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_5:
	mov	x23, x19
	ldr	w0, [x23], #8
	mov	x1, x22
	bl	_RCU_INIT_POINTER
	add	x0, x19, #16
	ldr	w1, [x24]
	bl	_INIT_RADIX_TREE
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	bl	_mutex_init
	mov	x0, x19
	bl	_i915_gem_context_pin_hw_id
	tbnz	w0, #31, LBB0_10
; %bb.6:
	cbz	x20, LBB0_4
; %bb.7:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_kstrdup
	str	w0, [x19, #4]
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_mock_ppgtt
	cbz	x0, LBB0_11
; %bb.9:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	___set_ppgtt
	mov	x0, x20
	bl	_i915_vm_put
	b	LBB0_4
LBB0_10:
	ldr	w0, [x19]
	bl	_rcu_access_pointer
	bl	_free_engines
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_i915_gem_context_set_closed
	mov	x0, x19
	bl	_i915_gem_context_put
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
