	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_hw_context
_create_hw_context:                     ## @create_hw_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, %rbx
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_alloc_object
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	cmpl	$7, (%rax)
	jl	LBB0_6
## %bb.5:
	movq	24(%r12), %rdi
	movq	_I915_CACHE_LLC_MLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i915_gem_object_set_cache_level
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:
	movq	_RCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%r15), %rax
	movq	%rax, 16(%r12)
	testq	%r14, %r14
	je	LBB0_15
## %bb.7:
	movq	%r14, 8(%r12)
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_idr_pre_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	_EAGAIN@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, (%r12)
	cmpl	$0, (%r15)
	jne	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_idr_pre_get
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DEFAULT_CONTEXT_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-44(%rbp), %rcx
	callq	_idr_get_new_above
	testl	%eax, %eax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ebx
	movl	(%r15), %eax
	addl	%ebx, %eax
	je	LBB0_11
	jmp	LBB0_14
LBB0_2:
	movq	%r12, %rdi
	callq	_kfree
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_14:
	movq	%r12, %rdi
	callq	_do_destroy
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_15:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Context object allocated failed\n"

	.comm	_I915_CACHE_LLC_MLC,4,2         ## @I915_CACHE_LLC_MLC
	.comm	_RCS,8,3                        ## @RCS
L_.str.1:                               ## @.str.1
	.asciz	"idr allocation failed\n"

	.comm	_DEFAULT_CONTEXT_ID,8,3         ## @DEFAULT_CONTEXT_ID
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_create_hw_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_hw_context
_create_hw_context:                     ; @create_hw_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w1, [x23, #8]
	mov	x0, x21
	bl	_i915_gem_alloc_object
	str	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #7
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x19, #24]
Lloh2:
	adrp	x8, _I915_CACHE_LLC_MLC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I915_CACHE_LLC_MLC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_i915_gem_object_set_cache_level
	mov	x21, x0
	cbnz	w0, LBB0_14
LBB0_4:
	ldr	x8, [x23]
Lloh5:
	adrp	x9, _RCS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RCS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #16]
	cbz	x20, LBB0_15
; %bb.5:
	str	x20, [x19, #8]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_idr_pre_get
	cbz	x0, LBB0_13
; %bb.6:
Lloh8:
	adrp	x23, _DEFAULT_CONTEXT_ID@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DEFAULT_CONTEXT_ID@GOTPAGEOFF]
Lloh10:
	adrp	x24, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EAGAIN@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x19]
	ldr	w8, [x24]
	cbnz	w8, LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_idr_pre_get
	cbz	x0, LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x2, x8, #1
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_idr_get_new_above
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x0
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_8
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_kfree
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_12:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_13:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_14:
	mov	x0, x19
	bl	_do_destroy
	mov	x0, x21
	bl	_ERR_PTR
	mov	x19, x0
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Context object allocated failed\n"

	.comm	_I915_CACHE_LLC_MLC,4,2         ; @I915_CACHE_LLC_MLC
	.comm	_RCS,8,3                        ; @RCS
l_.str.1:                               ; @.str.1
	.asciz	"idr allocation failed\n"

	.comm	_DEFAULT_CONTEXT_ID,8,3         ; @DEFAULT_CONTEXT_ID
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_create_hw_context
.subsections_via_symbols
