	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_hdmi_dpms
_cdv_hdmi_dpms:                         ## @cdv_hdmi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_to_gma_encoder
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	callq	_REG_READ
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rcx
	movq	_HDMIB_PORT_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	orl	%eax, %edx
	notl	%esi
	andl	%eax, %esi
	cmpl	%r14d, (%rcx)
	movl	(%rbx), %edi
	cmovel	%edx, %esi
	callq	_REG_WRITE
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_READ                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.comm	_HDMIB_PORT_EN,4,2              ## @HDMIB_PORT_EN
	.no_dead_strip	_cdv_hdmi_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_hdmi_dpms
_cdv_hdmi_dpms:                         ; @cdv_hdmi_dpms
	.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, x1
	bl	_to_gma_encoder
	ldr	x20, [x0]
	ldr	w0, [x20]
	bl	_REG_READ
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _HDMIB_PORT_EN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HDMIB_PORT_EN@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh5:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	cmp	w9, w19
	csel	w1, w11, w10, eq
	mov	x0, x8
	bl	_REG_WRITE
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_READ
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.comm	_HDMIB_PORT_EN,4,2              ; @HDMIB_PORT_EN
	.no_dead_strip	_cdv_hdmi_dpms
.subsections_via_symbols
