	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_alloc_initial_plane_obj
_intel_alloc_initial_plane_obj:         ## @intel_alloc_initial_plane_obj
	.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, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_to_i915
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_round_down
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	addq	(%rbx), %rdi
	movl	(%r13), %esi
	callq	_round_up
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.1:
	movl	%eax, %r13d
	subl	%r12d, %r13d
	leal	(%r13,%r13), %eax
	cmpl	(%r15), %eax
	jg	LBB0_6
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leal	-131(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_i915_gem_object_create_stolen_for_preallocated
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_mutex_unlock
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movl	16(%rbx), %edi
	callq	_MISSING_CASE
	movq	%r15, %rdi
	callq	_i915_gem_object_put
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_DEBUG_DRIVER
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported modifier for initial FB: 0x%llx\n"

	.comm	_DRM_MODE_FB_MODIFIERS,4,2      ## @DRM_MODE_FB_MODIFIERS
	.no_dead_strip	_intel_alloc_initial_plane_obj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_alloc_initial_plane_obj
_intel_alloc_initial_plane_obj:         ; @intel_alloc_initial_plane_obj
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_to_i915
	mov	x21, x0
	ldr	x24, [x19, #24]
	ldr	x0, [x19]
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_round_down
	mov	x22, x0
	ldp	x8, x9, [x19]
	add	x0, x9, x8
	ldr	w1, [x23]
	bl	_round_up
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.1:
	sub	w23, w0, w22
	ldr	w8, [x21]
	cmp	w8, w23, lsl #1
	b.lt	LBB0_6
; %bb.2:
	ldr	w1, [x24]
	sub	w8, w1, #131
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	mov	x3, x23
	bl	_i915_gem_object_create_stolen_for_preallocated
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbz	x21, LBB0_6
; %bb.4:
	ldr	w0, [x19, #16]
	bl	_MISSING_CASE
	mov	x0, x21
	bl	_i915_gem_object_put
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported modifier for initial FB: 0x%llx\n"

	.comm	_DRM_MODE_FB_MODIFIERS,4,2      ; @DRM_MODE_FB_MODIFIERS
	.no_dead_strip	_intel_alloc_initial_plane_obj
.subsections_via_symbols
