	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_dumb_create           ## -- Begin function i915_gem_dumb_create
	.p2align	4, 0x90
_i915_gem_dumb_create:                  ## @i915_gem_dumb_create
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	20(%rdx), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	cmpl	$1, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$4, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.4:
	movq	_DRM_FORMAT_RGB565@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_DRM_FORMAT_C8@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_DRM_FORMAT_XRGB8888@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %r12d
	imull	4(%rbx), %eax
	movl	%eax, %edi
	movl	$64, %esi
	callq	_ALIGN
	movq	%rax, %r13
	movl	%r13d, (%rbx)
	movq	%r15, %rdi
	callq	_to_i915
	movq	_DRM_FORMAT_MOD_LINEAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_intel_plane_fb_max_stride
	movl	%eax, %ecx
	movl	(%rbx), %eax
	cmpl	%r13d, %ecx
	jge	LBB0_9
## %bb.8:
	movl	%eax, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ALIGN
	movl	%eax, (%rbx)
LBB0_9:
	imull	12(%rbx), %eax
	leaq	8(%rbx), %r12
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_to_i915
	addq	$16, %rbx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_gem_create                ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_C8,4,2              ## @DRM_FORMAT_C8
	.comm	_DRM_FORMAT_RGB565,4,2          ## @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_XRGB8888,4,2        ## @DRM_FORMAT_XRGB8888
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_FORMAT_MOD_LINEAR,4,2      ## @DRM_FORMAT_MOD_LINEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_dumb_create           ; -- Begin function i915_gem_dumb_create
	.p2align	2
_i915_gem_dumb_create:                  ; @i915_gem_dumb_create
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x2, #20]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #4
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _DRM_FORMAT_RGB565@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_FORMAT_RGB565@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _DRM_FORMAT_C8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_FORMAT_C8@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _DRM_FORMAT_XRGB8888@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRM_FORMAT_XRGB8888@GOTPAGEOFF]
LBB0_6:
	ldr	w22, [x8]
	ldr	w8, [x19, #4]
	mul	w0, w8, w0
	mov	w1, #64
	bl	_ALIGN
	mov	x23, x0
	str	w23, [x19]
	mov	x0, x21
	bl	_to_i915
Lloh6:
	adrp	x8, _DRM_FORMAT_MOD_LINEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_FORMAT_MOD_LINEAR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_intel_plane_fb_max_stride
	mov	x8, x0
	ldr	w0, [x19]
	cmp	w8, w23
	b.ge	LBB0_8
; %bb.7:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4096
	bl	_ALIGN
	str	w0, [x19]
LBB0_8:
	ldr	w8, [x19, #12]
	mul	w8, w8, w0
	str	w8, [x19, #8]!
	mov	x0, x21
	bl	_to_i915
	mov	x1, x0
	add	x3, x19, #8
	mov	x0, x20
	mov	x2, x19
	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
	b	_i915_gem_create
LBB0_9:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_C8,4,2              ; @DRM_FORMAT_C8
	.comm	_DRM_FORMAT_RGB565,4,2          ; @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_XRGB8888,4,2        ; @DRM_FORMAT_XRGB8888
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_FORMAT_MOD_LINEAR,4,2      ; @DRM_FORMAT_MOD_LINEAR
.subsections_via_symbols
