	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_intel_sdvo_dpms
_psb_intel_sdvo_dpms:                   ## @psb_intel_sdvo_dpms
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r12
	callq	_to_psb_intel_sdvo
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_IS_MRST
	movq	%rax, %r15
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_17
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_psb_intel_sdvo_set_active_outputs
	movl	4(%r14), %edi
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	callq	_REG_READ_AUX
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movl	4(%r14), %edi
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	callq	_REG_READ_AUX
	jmp	LBB0_10
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psb_intel_sdvo_set_active_outputs ## TAILCALL
LBB0_4:
	callq	_REG_READ
LBB0_5:
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_16
## %bb.6:
	notl	%ecx
	andl	%ecx, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psb_intel_sdvo_write_sdvox     ## TAILCALL
LBB0_9:
	callq	_REG_READ
LBB0_10:
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	jne	LBB0_12
## %bb.11:
	orl	%eax, %esi
	movq	%r14, %rdi
	callq	_psb_intel_sdvo_write_sdvox
LBB0_12:
	movq	%r12, %rdi
	callq	_gma_wait_for_vblank
	movq	%r12, %rdi
	callq	_gma_wait_for_vblank
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_psb_intel_sdvo_get_trained_inputs
	movq	_SDVO_CMD_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	cmpl	$0, -36(%rbp)
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_SDVO_NAME
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
LBB0_15:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_psb_intel_sdvo_set_active_outputs
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPMS_ON"

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

L_.str.2:                               ## @.str.2
	.asciz	"DPMS: %d"

	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
	.comm	_SDVO_CMD_STATUS_SUCCESS,8,3    ## @SDVO_CMD_STATUS_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"First %s output reported failure to sync\n"

	.no_dead_strip	_psb_intel_sdvo_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_intel_sdvo_dpms
_psb_intel_sdvo_dpms:                   ; @psb_intel_sdvo_dpms
	.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	x22, x1
	ldr	x20, [x0]
	bl	_to_psb_intel_sdvo
	mov	x19, x0
	mov	x0, x20
	bl	_IS_MRST
	mov	x21, x0
	cmp	w22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x19
	mov	w1, #0
	bl	_psb_intel_sdvo_set_active_outputs
	ldr	w0, [x19, #4]
	cbz	x21, LBB0_7
; %bb.3:
	bl	_REG_READ_AUX
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w0, [x19, #4]
	cbz	x21, LBB0_10
; %bb.5:
	bl	_REG_READ_AUX
	b	LBB0_11
LBB0_6:
	str	x22, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x19
	mov	w1, #0
	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	_psb_intel_sdvo_set_active_outputs
LBB0_7:
	bl	_REG_READ
LBB0_8:
Lloh6:
	adrp	x8, _SDVO_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDVO_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.9:
	bic	w1, w0, w8
	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	_psb_intel_sdvo_write_sdvox
LBB0_10:
	bl	_REG_READ
LBB0_11:
Lloh9:
	adrp	x8, _SDVO_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDVO_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.12:
	orr	w1, w8, w0
	mov	x0, x19
	bl	_psb_intel_sdvo_write_sdvox
LBB0_13:
	mov	x0, x20
	bl	_gma_wait_for_vblank
	mov	x0, x20
	bl	_gma_wait_for_vblank
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_psb_intel_sdvo_get_trained_inputs
Lloh12:
	adrp	x8, _SDVO_CMD_STATUS_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDVO_CMD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
	cmp	x0, x8
	ccmp	w9, #0, #0, eq
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_SDVO_NAME
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_15:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_psb_intel_sdvo_set_active_outputs
LBB0_16:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPMS_ON"

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

l_.str.2:                               ; @.str.2
	.asciz	"DPMS: %d"

	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_SDVO_CMD_STATUS_SUCCESS,8,3    ; @SDVO_CMD_STATUS_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"First %s output reported failure to sync\n"

	.no_dead_strip	_psb_intel_sdvo_dpms
.subsections_via_symbols
