	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_framebuffer_init         ## -- Begin function intel_framebuffer_init
	.p2align	4, 0x90
_intel_framebuffer_init:                ## @intel_framebuffer_init
	.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	%rcx, %rbx
	movq	(%rcx), %rax
	movq	_I915_TILING_Y@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_14
LBB0_2:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	(%rdx), %rcx
	movl	(%rcx), %esi
	testb	$63, %sil
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_4:
	cmpl	$32769, %esi                    ## imm = 0x8001
	jl	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_6:
	movq	%rdi, %r15
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %edx
	cmpl	%edx, %esi
	jne	LBB0_17
LBB0_8:
	movl	8(%r12), %esi
	leal	-128(%rsi), %eax
	cmpl	$15, %eax
	ja	LBB0_25
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r15, %rdi
	callq	_INTEL_INFO
	cmpl	$3, (%rax)
	jg	LBB0_19
LBB0_11:
	movl	8(%r12), %esi
	leaq	L_.str.4(%rip), %rdi
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_14
LBB0_18:
	movq	%r15, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jle	LBB0_11
LBB0_19:
	movq	16(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_21:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_drm_helper_mode_fill_fb_struct
	movq	%rbx, 8(%r14)
	movq	_intel_fb_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_framebuffer_init
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_16
LBB0_23:
	movq	%r15, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jge	LBB0_11
	jmp	LBB0_19
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_25:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_23
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_23
	.long	L0_0_set_10
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_I915_TILING_Y,8,3              ## @I915_TILING_Y
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware does not support tiling Y\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"pitch (%d) must be at least 64 byte aligned\n"

L_.str.2:                               ## @.str.2
	.asciz	"pitch (%d) must be at less than 32768\n"

	.comm	_I915_TILING_NONE,8,3           ## @I915_TILING_NONE
L_.str.3:                               ## @.str.3
	.asciz	"pitch (%d) must match tiling stride (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid format: 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"unsupported pixel format 0x%08x\n"

	.comm	_intel_fb_funcs,4,2             ## @intel_fb_funcs
L_.str.6:                               ## @.str.6
	.asciz	"framebuffer init failed %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_framebuffer_init         ; -- Begin function intel_framebuffer_init
	.p2align	2
_intel_framebuffer_init:                ; @intel_framebuffer_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x9, [x3]
Lloh0:
	adrp	x8, _I915_TILING_Y@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_TILING_Y@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
LBB0_2:
	mov	x22, x2
	ldr	x8, [x2]
	ldr	w8, [x8]
	tst	w8, #0x3f
	b.eq	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
LBB0_4:
	cmp	w8, #8, lsl #12                 ; =32768
	b.le	LBB0_6
; %bb.5:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
LBB0_6:
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh9:
	adrp	x10, _I915_TILING_NONE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I915_TILING_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_8:
	ldr	w8, [x22, #8]
	sub	w9, w8, #128
	cmp	w9, #15
	b.hi	LBB0_20
; %bb.9:
Lloh12:
	adrp	x8, lJTI0_0@PAGE
Lloh13:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #3
	b.gt	LBB0_14
LBB0_11:
	ldr	w8, [x22, #8]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
LBB0_12:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.le	LBB0_11
LBB0_14:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
LBB0_15:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_16:
	mov	x0, 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
	add	sp, sp, #64
	ret
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	bl	_drm_helper_mode_fill_fb_struct
	str	x21, [x19, #8]
Lloh21:
	adrp	x2, _intel_fb_funcs@GOTPAGE
Lloh22:
	ldr	x2, [x2, _intel_fb_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_framebuffer_init
	mov	x19, x0
	cbz	w0, LBB0_16
; %bb.18:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
	b	LBB0_16
LBB0_19:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.ge	LBB0_11
	b	LBB0_14
LBB0_20:
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
                                        ; -- End function
	.comm	_I915_TILING_Y,8,3              ; @I915_TILING_Y
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware does not support tiling Y\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"pitch (%d) must be at least 64 byte aligned\n"

l_.str.2:                               ; @.str.2
	.asciz	"pitch (%d) must be at less than 32768\n"

	.comm	_I915_TILING_NONE,8,3           ; @I915_TILING_NONE
l_.str.3:                               ; @.str.3
	.asciz	"pitch (%d) must match tiling stride (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid format: 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"unsupported pixel format 0x%08x\n"

	.comm	_intel_fb_funcs,4,2             ; @intel_fb_funcs
l_.str.6:                               ; @.str.6
	.asciz	"framebuffer init failed %d\n"

.subsections_via_symbols
