	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_create_stolen  ## -- Begin function i915_gem_object_create_stolen
	.p2align	4, 0x90
_i915_gem_object_create_stolen:         ## @i915_gem_object_create_stolen
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_drm_mm_initialized
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_i915_gem_stolen_insert_node
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	callq	_kfree
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	__i915_gem_object_create_stolen
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i915_gem_stolen_remove_node
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_create_stolen  ; -- Begin function i915_gem_object_create_stolen
	.p2align	2
_i915_gem_object_create_stolen:         ; @i915_gem_object_create_stolen
	.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	x19, x0
	bl	_drm_mm_initialized
	mov	x8, x0
	mov	x0, #0
	cbz	w21, LBB0_6
; %bb.1:
	cbz	w8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #4096
	bl	_i915_gem_stolen_insert_node
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_kfree
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	__i915_gem_object_create_stolen
	cbz	x0, LBB0_7
LBB0_6:
	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_7:
	mov	x0, x19
	mov	x1, x20
	bl	_i915_gem_stolen_remove_node
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
