	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_load                  ## -- Begin function i915_gem_load
	.p2align	4, 0x90
_i915_gem_load:                         ## @i915_gem_load
	.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	%rdi, %r14
	movq	(%rdi), %r12
	movq	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movl	%eax, 72(%r12)
	leaq	40(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	_I915_NUM_RINGS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r12), %rdi
	addq	%r13, %rdi
	callq	_init_ring_lists
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_I915_MAX_NUM_FENCES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rdi
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	leaq	20(%r12), %rdi
	movq	_i915_gem_retire_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	52(%r12), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	callq	_IS_GEN3
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_MI_ARB_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MI_ARB_C3_LP_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_8:
	movq	_I915_EXEC_CONSTANTS_REL_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	$3, (%r12)
LBB0_10:
	movq	%r14, %rdi
	callq	_INTEL_INFO
	movl	$16, %r15d
	cmpl	$3, (%rax)
	jg	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_IS_I945G
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_IS_I945GM
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_IS_G33
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	8(,%rcx,8), %r15d
LBB0_14:
	movl	%r15d, 4(%r12)
	movq	%r14, %rdi
	callq	_i915_gem_reset_fences
	movq	%r14, %rdi
	callq	_i915_gem_detect_bit_6_swizzle
	leaq	44(%r12), %rdi
	callq	_init_waitqueue_head
	movl	$1, 8(%r12)
	movq	_i915_gem_inactive_shrink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%r12), %rdi
	movl	%eax, 16(%r12)
	movq	_DEFAULT_SEEKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_shrinker              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i915_gem_object"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
	.comm	_I915_NUM_RINGS,4,2             ## @I915_NUM_RINGS
	.comm	_I915_MAX_NUM_FENCES,4,2        ## @I915_MAX_NUM_FENCES
	.comm	_i915_gem_retire_work_handler,4,2 ## @i915_gem_retire_work_handler
	.comm	_MI_ARB_STATE,4,2               ## @MI_ARB_STATE
	.comm	_MI_ARB_C3_LP_WRITE_ENABLE,4,2  ## @MI_ARB_C3_LP_WRITE_ENABLE
	.comm	_I915_EXEC_CONSTANTS_REL_GENERAL,4,2 ## @I915_EXEC_CONSTANTS_REL_GENERAL
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_i915_gem_inactive_shrink,4,2   ## @i915_gem_inactive_shrink
	.comm	_DEFAULT_SEEKS,4,2              ## @DEFAULT_SEEKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_load                  ; -- Begin function i915_gem_load
	.p2align	2
_i915_gem_load:                         ; @i915_gem_load
	.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, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #4
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19, #72]
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
Lloh5:
	adrp	x21, _I915_NUM_RINGS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _I915_NUM_RINGS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	add	x0, x8, x22
	bl	_init_ring_lists
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
Lloh7:
	adrp	x21, _I915_MAX_NUM_FENCES@GOTPAGE
Lloh8:
	ldr	x21, [x21, _I915_MAX_NUM_FENCES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x22
	bl	_INIT_LIST_HEAD
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_6:
	add	x0, x19, #20
Lloh9:
	adrp	x8, _i915_gem_retire_work_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _i915_gem_retire_work_handler@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #52
	bl	_init_waitqueue_head
	mov	x0, x20
	bl	_IS_GEN3
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _MI_ARB_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MI_ARB_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
Lloh15:
	adrp	x8, _MI_ARB_C3_LP_WRITE_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MI_ARB_C3_LP_WRITE_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
LBB0_8:
Lloh18:
	adrp	x8, _I915_EXEC_CONSTANTS_REL_GENERAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I915_EXEC_CONSTANTS_REL_GENERAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh21:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbnz	w0, LBB0_10
; %bb.9:
	mov	w8, #3
	str	w8, [x19]
LBB0_10:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #3
	b.gt	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_IS_I945G
	cbz	x0, LBB0_14
LBB0_12:
	mov	w21, #16
LBB0_13:
	str	w21, [x19, #4]
	mov	x0, x20
	bl	_i915_gem_reset_fences
	mov	x0, x20
	bl	_i915_gem_detect_bit_6_swizzle
	add	x0, x19, #44
	bl	_init_waitqueue_head
Lloh24:
	adrp	x8, _DEFAULT_SEEKS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DEFAULT_SEEKS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #12]!
	mov	w8, #1
	stur	w8, [x19, #-4]
Lloh27:
	adrp	x8, _i915_gem_inactive_shrink@GOTPAGE
Lloh28:
	ldr	x8, [x8, _i915_gem_inactive_shrink@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19, #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
	b	_register_shrinker
LBB0_14:
	mov	x0, x20
	bl	_IS_I945GM
	mov	w21, #16
	cbnz	x0, LBB0_13
; %bb.15:
	mov	x0, x20
	bl	_IS_G33
	cmp	x0, #0
	mov	w8, #8
	csel	w21, w8, w21, eq
	b	LBB0_13
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i915_gem_object"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
	.comm	_I915_NUM_RINGS,4,2             ; @I915_NUM_RINGS
	.comm	_I915_MAX_NUM_FENCES,4,2        ; @I915_MAX_NUM_FENCES
	.comm	_i915_gem_retire_work_handler,4,2 ; @i915_gem_retire_work_handler
	.comm	_MI_ARB_STATE,4,2               ; @MI_ARB_STATE
	.comm	_MI_ARB_C3_LP_WRITE_ENABLE,4,2  ; @MI_ARB_C3_LP_WRITE_ENABLE
	.comm	_I915_EXEC_CONSTANTS_REL_GENERAL,4,2 ; @I915_EXEC_CONSTANTS_REL_GENERAL
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_i915_gem_inactive_shrink,4,2   ; @i915_gem_inactive_shrink
	.comm	_DEFAULT_SEEKS,4,2              ; @DEFAULT_SEEKS
.subsections_via_symbols
