	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_alloc_object          ## -- Begin function i915_gem_alloc_object
	.p2align	4, 0x90
_i915_gem_alloc_object:                 ## @i915_gem_alloc_object
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_i915_gem_object_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_drm_gem_object_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_i915_gem_object_free
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rax
	movq	___GFP_RECLAIMABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_IS_CRESTLINE
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_IS_BROADWATER
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	___GFP_DMA32@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_7:
	movl	24(%rbx), %edi
	callq	_file_inode
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_mapping_set_gfp_mask
	movq	_i915_gem_object_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_i915_gem_object_init
	movq	_I915_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_HAS_LLC
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_I915_CACHE_NONE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_i915_gem_object_ops,4,2        ## @i915_gem_object_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_alloc_object          ; -- Begin function i915_gem_alloc_object
	.p2align	2
_i915_gem_alloc_object:                 ; @i915_gem_alloc_object
	.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, x1
	mov	x20, x0
	bl	_i915_gem_object_alloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	add	x1, x19, #8
	mov	x0, x20
	mov	x2, x21
	bl	_drm_gem_object_init
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_i915_gem_object_free
	mov	x19, #0
	b	LBB0_10
LBB0_3:
Lloh0:
	adrp	x8, _GFP_HIGHUSER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_HIGHUSER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_RECLAIMABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_RECLAIMABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x20
	bl	_IS_CRESTLINE
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_IS_BROADWATER
	cbz	x0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, ___GFP_HIGHMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___GFP_HIGHMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh9:
	adrp	x9, ___GFP_DMA32@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___GFP_DMA32@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w21, w8, w9
LBB0_6:
	ldr	w0, [x19, #24]
	bl	_file_inode
	ldr	x0, [x0]
	mov	x1, x21
	bl	_mapping_set_gfp_mask
Lloh12:
	adrp	x1, _i915_gem_object_ops@GOTPAGE
Lloh13:
	ldr	x1, [x1, _i915_gem_object_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_i915_gem_object_init
Lloh14:
	adrp	x8, _I915_GEM_DOMAIN_CPU@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I915_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
	mov	x0, x20
	bl	_HAS_LLC
	cbz	x0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _I915_CACHE_LLC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I915_CACHE_LLC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _I915_CACHE_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I915_CACHE_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.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	_i915_gem_object_ops,4,2        ; @i915_gem_object_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
