	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_context_init             ## -- Begin function intel_context_init
	.p2align	4, 0x90
_intel_context_init:                    ## @intel_context_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 8(%rdx)
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	56(%rbx), %rdi
	callq	_kref_init
	movq	%r14, 48(%rbx)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
LBB0_2:
	callq	_i915_vm_get
	movl	%eax, 44(%rbx)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_intel_timeline_get
	movl	%eax, 40(%rbx)
LBB0_4:
	movq	%r15, 32(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 24(%rbx)
	movl	(%r15), %eax
	movl	%eax, 20(%rbx)
	movq	_SZ_16K@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___intel_context_ring_size
	movl	%eax, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%rbx), %rdi
	callq	_mutex_init
	movl	(%r14), %edi
	movq	___intel_context_active@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___intel_context_retire@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_active_init               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_16K,4,2                     ## @SZ_16K
	.comm	___intel_context_active,4,2     ## @__intel_context_active
	.comm	___intel_context_retire,4,2     ## @__intel_context_retire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_context_init             ; -- Begin function intel_context_init
	.p2align	2
_intel_context_init:                    ; @intel_context_init
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x2, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	add	x0, x19, #56
	bl	_kref_init
	str	x20, [x19, #48]
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	x0, [x8]
LBB0_2:
	bl	_i915_vm_get
	str	w0, [x19, #44]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_intel_timeline_get
	str	w0, [x19, #40]
LBB0_4:
	ldr	x8, [x21, #8]
	stp	x8, x21, [x19, #24]
	ldr	w8, [x21]
	str	w8, [x19, #20]
Lloh0:
	adrp	x8, _SZ_16K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_16K@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___intel_context_ring_size
	str	w0, [x19, #16]
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
	add	x0, x19, #4
	bl	_mutex_init
	ldr	w0, [x20]
Lloh3:
	adrp	x8, ___intel_context_active@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___intel_context_active@GOTPAGEOFF]
Lloh5:
	adrp	x9, ___intel_context_retire@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___intel_context_retire@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	ldr	w3, [x9]
	mov	x1, 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
	b	_i915_active_init
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_16K,4,2                     ; @SZ_16K
	.comm	___intel_context_active,4,2     ; @__intel_context_active
	.comm	___intel_context_retire,4,2     ; @__intel_context_retire
.subsections_via_symbols
