	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_fbdev_set_suspend        ## -- Begin function intel_fbdev_set_suspend
	.p2align	4, 0x90
_intel_fbdev_set_suspend:               ## @intel_fbdev_set_suspend
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	callq	_to_i915
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	cmpl	$0, 16(%rbx)
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_FBINFO_STATE_RUNNING@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:
	cmpl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_flush_work
LBB0_5:
	xorl	%eax, %eax
	callq	_console_lock
	jmp	LBB0_7
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setne	%dil
	callq	_WARN_ON
	xorl	%eax, %eax
	callq	_console_trylock
	testl	%eax, %eax
	je	LBB0_12
LBB0_7:
	cmpl	%r14d, (%r13)
	jne	LBB0_10
## %bb.8:
	movq	8(%rbx), %rdi
	callq	_intel_fb_obj
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %edi
	xorl	%esi, %esi
	callq	_memset_io
LBB0_10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_drm_fb_helper_set_suspend
	xorl	%eax, %eax
	callq	_console_unlock
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_fbdev_hpd_set_suspend    ## TAILCALL
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FBINFO_STATE_RUNNING,4,2       ## @FBINFO_STATE_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_fbdev_set_suspend        ; -- Begin function intel_fbdev_set_suspend
	.p2align	2
_intel_fbdev_set_suspend:               ; @intel_fbdev_set_suspend
	.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	x22, x2
	mov	x19, x1
	bl	_to_i915
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_6
; %bb.1:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x23, [x20]
Lloh0:
	adrp	x24, _FBINFO_STATE_RUNNING@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FBINFO_STATE_RUNNING@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w19
	cbz	w22, LBB0_7
; %bb.3:
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_flush_work
LBB0_5:
	bl	_console_lock
	b	LBB0_8
LBB0_6:
	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
LBB0_7:
	cset	w0, ne
	bl	_WARN_ON
	bl	_console_trylock
	cbz	w0, LBB0_12
LBB0_8:
	ldr	w8, [x24]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x20, #8]
	bl	_intel_fb_obj
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.10:
	ldp	w2, w0, [x23]
	mov	w1, #0
	bl	_memset_io
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_fb_helper_set_suspend
	bl	_console_unlock
	mov	x0, x20
	mov	x1, 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	_intel_fbdev_hpd_set_suspend
LBB0_12:
	mov	x0, x21
	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	_schedule_work
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FBINFO_STATE_RUNNING,4,2       ; @FBINFO_STATE_RUNNING
.subsections_via_symbols
