	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_create_shmem   ## -- Begin function i915_gem_object_create_shmem
	.p2align	4, 0x90
_i915_gem_object_create_shmem:          ## @i915_gem_object_create_shmem
	.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
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%esi, %eax
	sarl	%cl, %eax
	cltq
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jl	LBB0_1
## %bb.3:
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_overflows_type
	testq	%rax, %rax
	je	LBB0_4
LBB0_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_4:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_i915_gem_object_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rsi
	addq	$16, %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_create_shmem
	testl	%eax, %eax
	je	LBB0_7
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_i915_gem_object_free
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	jmp	LBB0_2
LBB0_7:
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rax
	movq	___GFP_RECLAIMABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_IS_I965GM
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_IS_I965G
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	___GFP_DMA32@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_10:
	movq	16(%r14), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mapping_set_gfp_mask
	movq	%r12, %rdi
	callq	_mapping_gfp_mask
	movq	___GFP_RECLAIM@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_i915_gem_shmem_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_i915_gem_object_init
	movq	_I915_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%rax, (%r14)
	movq	%r15, %rdi
	callq	_HAS_LLC
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movq	_I915_CACHE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i915_gem_object_set_cache_coherency
	movq	%r14, %rdi
	callq	_trace_i915_gem_object_create
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_HIGHUSER,4,2               ## @GFP_HIGHUSER
	.comm	___GFP_RECLAIMABLE,4,2          ## @__GFP_RECLAIMABLE
	.comm	___GFP_HIGHMEM,4,2              ## @__GFP_HIGHMEM
	.comm	___GFP_DMA32,4,2                ## @__GFP_DMA32
	.comm	___GFP_RECLAIM,4,2              ## @__GFP_RECLAIM
	.comm	_i915_gem_shmem_ops,4,2         ## @i915_gem_shmem_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_shmem   ; -- Begin function i915_gem_object_create_shmem
	.p2align	2
_i915_gem_object_create_shmem:          ; @i915_gem_object_create_shmem
	.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
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w1, w8
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, w8, sxtw
	b.lt	LBB0_2
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_overflows_type
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _E2BIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	bl	_i915_gem_object_alloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
	add	x1, x0, #16
	mov	x0, x19
	mov	x2, x21
	bl	_create_shmem
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	_i915_gem_object_free
	mov	x0, x21
	b	LBB0_4
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
Lloh10:
	adrp	x8, _GFP_HIGHUSER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_HIGHUSER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, ___GFP_RECLAIMABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___GFP_RECLAIMABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x19
	bl	_IS_I965GM
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_IS_I965G
	cbz	x0, LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, ___GFP_HIGHMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___GFP_HIGHMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh19:
	adrp	x9, ___GFP_DMA32@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___GFP_DMA32@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w21, w8, w9
LBB0_12:
	ldr	x8, [x20, #16]
	ldr	x22, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_mapping_set_gfp_mask
	mov	x0, x22
	bl	_mapping_gfp_mask
Lloh22:
	adrp	x8, ___GFP_RECLAIM@GOTPAGE
Lloh23:
	ldr	x8, [x8, ___GFP_RECLAIM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh25:
	adrp	x1, _i915_gem_shmem_ops@GOTPAGE
Lloh26:
	ldr	x1, [x1, _i915_gem_shmem_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_i915_gem_object_init
Lloh27:
	adrp	x8, _I915_GEM_DOMAIN_CPU@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I915_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	stp	x8, x8, [x20]
	mov	x0, x19
	bl	_HAS_LLC
Lloh30:
	adrp	x8, _I915_CACHE_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I915_CACHE_NONE@GOTPAGEOFF]
Lloh32:
	adrp	x9, _I915_CACHE_LLC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _I915_CACHE_LLC@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i915_gem_object_set_cache_coherency
	mov	x0, x20
	bl	_trace_i915_gem_object_create
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_HIGHUSER,4,2               ; @GFP_HIGHUSER
	.comm	___GFP_RECLAIMABLE,4,2          ; @__GFP_RECLAIMABLE
	.comm	___GFP_HIGHMEM,4,2              ; @__GFP_HIGHMEM
	.comm	___GFP_DMA32,4,2                ; @__GFP_DMA32
	.comm	___GFP_RECLAIM,4,2              ; @__GFP_RECLAIM
	.comm	_i915_gem_shmem_ops,4,2         ; @i915_gem_shmem_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
