	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_power_on_core
_hdmi_power_on_core:                    ## @hdmi_power_on_core
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rdi)
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movl	8(%rdi), %edi
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_hdmi_runtime_get
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_regulator_disable
LBB0_5:
	decl	(%r15)
	movl	%r12d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_hdmi4_core_powerdown_disable
	movl	12(%rbx), %edi
	movq	_DSS_HDMI_M_PCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dss_select_hdmi_venc_clk_source
	movl	$1, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_HDMI_M_PCLK,4,2            ## @DSS_HDMI_M_PCLK
	.no_dead_strip	_hdmi_power_on_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_power_on_core
_hdmi_power_on_core:                    ; @hdmi_power_on_core
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	w8, [x20, #4]!
	add	w9, w8, #1
	str	w9, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_hdmi_runtime_get
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_regulator_disable
LBB0_5:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	bl	_hdmi4_core_powerdown_disable
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _DSS_HDMI_M_PCLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_HDMI_M_PCLK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dss_select_hdmi_venc_clk_source
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_HDMI_M_PCLK,4,2            ; @DSS_HDMI_M_PCLK
	.no_dead_strip	_hdmi_power_on_core
.subsections_via_symbols
