	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_create_internal ## -- Begin function i915_gem_object_create_internal
	.p2align	4, 0x90
_i915_gem_object_create_internal:       ## @i915_gem_object_create_internal
	.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	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%esi, %esi
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	%ebx, %edi
	callq	_overflows_type
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_i915_gem_object_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_drm_gem_private_object_init
	movq	_i915_gem_object_internal_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_i915_gem_object_init
	movq	_I915_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%rax, (%r15)
	movq	%r14, %rdi
	callq	_HAS_LLC
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_I915_CACHE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	jmp	LBB0_2
LBB0_6:
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_set_cache_coherency
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_i915_gem_object_internal_ops,4,2 ## @i915_gem_object_internal_ops
	.comm	_I915_GEM_DOMAIN_CPU,8,3        ## @I915_GEM_DOMAIN_CPU
	.comm	_I915_CACHE_LLC,4,2             ## @I915_CACHE_LLC
	.comm	_I915_CACHE_NONE,4,2            ## @I915_CACHE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_create_internal ; -- Begin function i915_gem_object_create_internal
	.p2align	2
_i915_gem_object_create_internal:       ; @i915_gem_object_create_internal
	.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, x1
	mov	x19, x0
	cmp	w1, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x20
	bl	_overflows_type
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _E2BIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
LBB0_3:
	bl	_i915_gem_object_alloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	add	x1, x0, #16
	mov	x0, x19
	mov	x2, x20
	bl	_drm_gem_private_object_init
Lloh5:
	adrp	x1, _i915_gem_object_internal_ops@GOTPAGE
Lloh6:
	ldr	x1, [x1, _i915_gem_object_internal_ops@GOTPAGEOFF]
	mov	x0, x21
	bl	_i915_gem_object_init
Lloh7:
	adrp	x8, _I915_GEM_DOMAIN_CPU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I915_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	stp	x8, x8, [x21]
	mov	x0, x19
	bl	_HAS_LLC
Lloh10:
	adrp	x8, _I915_CACHE_LLC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I915_CACHE_LLC@GOTPAGEOFF]
Lloh12:
	adrp	x9, _I915_CACHE_NONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I915_CACHE_NONE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i915_gem_object_set_cache_coherency
	mov	x0, x21
	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
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_i915_gem_object_internal_ops,4,2 ; @i915_gem_object_internal_ops
	.comm	_I915_GEM_DOMAIN_CPU,8,3        ; @I915_GEM_DOMAIN_CPU
	.comm	_I915_CACHE_LLC,4,2             ; @I915_CACHE_LLC
	.comm	_I915_CACHE_NONE,4,2            ; @I915_CACHE_NONE
.subsections_via_symbols
