	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_restore_context
_dss_restore_context:                   ## @dss_restore_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DSSDBG
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RR
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_OMAP_DSS_CHANNEL_LCD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_OMAP_DSS_OUTPUT_SDI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_3
## %bb.2:
	movq	_SDI_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RR
	movq	_PLL_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RR
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DSSDBG                         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dss_restore_context\n"

	.comm	_CONTROL,4,2                    ## @CONTROL
	.comm	_OMAP_DSS_CHANNEL_LCD,8,3       ## @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_OUTPUT_SDI,4,2        ## @OMAP_DSS_OUTPUT_SDI
	.comm	_SDI_CONTROL,4,2                ## @SDI_CONTROL
	.comm	_PLL_CONTROL,4,2                ## @PLL_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"context restored\n"

	.no_dead_strip	_dss_restore_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_restore_context
_dss_restore_context:                   ; @dss_restore_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RR
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _OMAP_DSS_CHANNEL_LCD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OMAP_DSS_CHANNEL_LCD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh8:
	adrp	x9, _OMAP_DSS_OUTPUT_SDI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OMAP_DSS_OUTPUT_SDI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _SDI_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDI_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RR
Lloh14:
	adrp	x8, _PLL_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PLL_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RR
LBB0_3:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DSSDBG
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dss_restore_context\n"

	.comm	_CONTROL,4,2                    ; @CONTROL
	.comm	_OMAP_DSS_CHANNEL_LCD,8,3       ; @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_OUTPUT_SDI,4,2        ; @OMAP_DSS_OUTPUT_SDI
	.comm	_SDI_CONTROL,4,2                ; @SDI_CONTROL
	.comm	_PLL_CONTROL,4,2                ; @PLL_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"context restored\n"

	.no_dead_strip	_dss_restore_context
.subsections_via_symbols
