	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dbi_display_is_on         ## -- Begin function mipi_dbi_display_is_on
	.p2align	4, 0x90
_mipi_dbi_display_is_on:                ## @mipi_dbi_display_is_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_MIPI_DCS_GET_POWER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_mipi_dbi_command_read
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	movq	_DCS_POWER_MODE_RESERVED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	-4(%rbp), %ecx
	movl	%ecx, -4(%rbp)
	movq	_DCS_POWER_MODE_DISPLAY@GOTPCREL(%rip), %rdx
	movq	_DCS_POWER_MODE_DISPLAY_NORMAL_MODE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_DCS_POWER_MODE_SLEEP_MODE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	cmpl	%esi, %ecx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	$1, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DCS_GET_POWER_MODE,4,2    ## @MIPI_DCS_GET_POWER_MODE
	.comm	_DCS_POWER_MODE_RESERVED_MASK,4,2 ## @DCS_POWER_MODE_RESERVED_MASK
	.comm	_DCS_POWER_MODE_DISPLAY,4,2     ## @DCS_POWER_MODE_DISPLAY
	.comm	_DCS_POWER_MODE_DISPLAY_NORMAL_MODE,4,2 ## @DCS_POWER_MODE_DISPLAY_NORMAL_MODE
	.comm	_DCS_POWER_MODE_SLEEP_MODE,4,2  ## @DCS_POWER_MODE_SLEEP_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Display is ON\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dbi_display_is_on         ; -- Begin function mipi_dbi_display_is_on
	.p2align	2
_mipi_dbi_display_is_on:                ; @mipi_dbi_display_is_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MIPI_DCS_GET_POWER_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DCS_GET_POWER_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_mipi_dbi_command_read
	cbnz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DCS_POWER_MODE_RESERVED_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCS_POWER_MODE_RESERVED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldur	w9, [x29, #-4]
	bic	w8, w9, w8
	stur	w8, [x29, #-4]
Lloh6:
	adrp	x9, _DCS_POWER_MODE_DISPLAY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCS_POWER_MODE_DISPLAY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _DCS_POWER_MODE_DISPLAY_NORMAL_MODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DCS_POWER_MODE_DISPLAY_NORMAL_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _DCS_POWER_MODE_SLEEP_MODE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DCS_POWER_MODE_SLEEP_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DCS_GET_POWER_MODE,4,2    ; @MIPI_DCS_GET_POWER_MODE
	.comm	_DCS_POWER_MODE_RESERVED_MASK,4,2 ; @DCS_POWER_MODE_RESERVED_MASK
	.comm	_DCS_POWER_MODE_DISPLAY,4,2     ; @DCS_POWER_MODE_DISPLAY
	.comm	_DCS_POWER_MODE_DISPLAY_NORMAL_MODE,4,2 ; @DCS_POWER_MODE_DISPLAY_NORMAL_MODE
	.comm	_DCS_POWER_MODE_SLEEP_MODE,4,2  ; @DCS_POWER_MODE_SLEEP_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Display is ON\n"

.subsections_via_symbols
