	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_fbdev_init               ## -- Begin function intel_fbdev_init
	.p2align	4, 0x90
_intel_fbdev_init:                      ## @intel_fbdev_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, %rbx
	callq	_to_i915
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HAS_DISPLAY
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leaq	8(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %r12
	addq	$4, %r12
	movq	_intel_fb_helper_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_drm_fb_helper_prepare
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_intel_fbdev_init_bios
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	$32, (%r15)
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_drm_fb_helper_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r15, 8(%r14)
	movq	_intel_fbdev_suspend_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_WORK
	movq	%r12, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_intel_fb_helper_funcs,4,2      ## @intel_fb_helper_funcs
	.comm	_intel_fbdev_suspend_worker,4,2 ## @intel_fbdev_suspend_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_fbdev_init               ; -- Begin function intel_fbdev_init
	.p2align	2
_intel_fbdev_init:                      ; @intel_fbdev_init
	.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	x20, x0
	bl	_to_i915
	mov	x19, x0
	bl	_HAS_DISPLAY
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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_4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	add	x0, x0, #8
	bl	_mutex_init
	add	x22, x21, #4
Lloh5:
	adrp	x2, _intel_fb_helper_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _intel_fb_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	bl	_drm_fb_helper_prepare
	mov	x0, x20
	mov	x1, x21
	bl	_intel_fbdev_init_bios
	cbnz	w0, LBB0_7
; %bb.6:
	mov	w8, #32
	str	w8, [x21]
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #4
	bl	_drm_fb_helper_init
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_kfree
	b	LBB0_3
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	str	x21, [x19, #8]
Lloh9:
	adrp	x8, _intel_fbdev_suspend_worker@GOTPAGE
Lloh10:
	ldr	x8, [x8, _intel_fbdev_suspend_worker@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	mov	x0, x22
	bl	_drm_fb_helper_single_add_all_connectors
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_intel_fb_helper_funcs,4,2      ; @intel_fb_helper_funcs
	.comm	_intel_fbdev_suspend_worker,4,2 ; @intel_fbdev_suspend_worker
.subsections_via_symbols
