	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_modeset_init             ## -- Begin function intel_modeset_init
	.p2align	4, 0x90
_intel_modeset_init:                    ## @intel_modeset_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	%rdi, %r15
	movq	48(%rdi), %r12
	callq	_drm_mode_config_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r15)
	movabsq	$4294967320, %rax               ## imm = 0x100000018
	movq	%rax, (%r15)
	movq	_intel_mode_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	callq	_intel_init_quirks
	movq	%r15, %rdi
	callq	_intel_init_pm
	movq	%r15, %rdi
	callq	_intel_init_display
	movq	%r15, %rdi
	callq	_IS_GEN2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$2048, 8(%r15)                  ## imm = 0x800
	movl	$2048, %eax                     ## imm = 0x800
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_IS_GEN3
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$4096, 8(%r15)                  ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
	jmp	LBB0_5
LBB0_4:
	movl	$8192, 8(%r15)                  ## imm = 0x2000
	movl	$8192, %eax                     ## imm = 0x2000
LBB0_5:
	movl	%eax, 12(%r15)
	movl	4(%r12), %eax
	movl	%eax, 16(%r15)
	movl	(%r12), %esi
	cmpl	$2, %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmovgeq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.6:
	leaq	L_.str.3(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_crtc_init
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_plane_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_intel_cpu_pll_init
	movq	%r15, %rdi
	callq	_intel_pch_pll_init
	movq	%r15, %rdi
	callq	_i915_disable_vga
	movq	%r15, %rdi
	callq	_intel_setup_outputs
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_disable_fbc              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_mode_funcs,4,2           ## @intel_mode_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d display pipe%s available.\n"

L_.str.1:                               ## @.str.1
	.asciz	"s"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"plane %d init failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function intel_modeset_init
lCPI0_0:
	.long	24                              ; 0x18
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_intel_modeset_init
	.p2align	2
_intel_modeset_init:                    ; @intel_modeset_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
	mov	x19, x0
	ldr	x22, [x0, #48]
	bl	_drm_mode_config_init
	str	xzr, [x19, #40]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh2:
	adrp	x8, _intel_mode_funcs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _intel_mode_funcs@GOTPAGEOFF]
	stp	x8, xzr, [x19, #24]
	mov	x0, x19
	bl	_intel_init_quirks
	mov	x0, x19
	bl	_intel_init_pm
	mov	x0, x19
	bl	_intel_init_display
	mov	x0, x19
	bl	_IS_GEN2
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #2048
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_IS_GEN3
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #4096
	b	LBB0_5
LBB0_4:
	mov	w8, #8192
LBB0_5:
	str	w8, [x19, #8]
	ldp	w1, w9, [x22]
	stp	w8, w9, [x19, #12]
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w1, #1
	csel	x8, x9, x8, gt
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w20, #0
Lloh10:
	adrp	x21, l_.str.3@PAGE
Lloh11:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_intel_crtc_init
	mov	x0, x19
	mov	x1, x20
	bl	_intel_plane_init
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_intel_cpu_pll_init
	mov	x0, x19
	bl	_intel_pch_pll_init
	mov	x0, x19
	bl	_i915_disable_vga
	mov	x0, x19
	bl	_intel_setup_outputs
	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
	b	_intel_disable_fbc
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_mode_funcs,4,2           ; @intel_mode_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d display pipe%s available.\n"

l_.str.1:                               ; @.str.1
	.asciz	"s"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"plane %d init failed: %d\n"

.subsections_via_symbols
