	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmiphy_enable
_hdmiphy_enable:                        ## @hdmiphy_enable
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_pm_runtime_get_sync
	movq	_supply@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_DEBUG_KMS
LBB0_3:
	movl	4(%rbx), %edi
	movq	_PMU_HDMI_PHY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PMU_HDMI_PHY_ENABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_regmap_update_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hdmi_set_refclk
	movq	_HDMI_PHY_CON_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_PHY_POWER_OFF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_reg_writemask
	movq	%rbx, %rdi
	callq	_hdmiphy_conf_apply
	movl	$1, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supply,4,2                     ## @supply
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable regulator bulk\n"

	.comm	_PMU_HDMI_PHY_CONTROL,4,2       ## @PMU_HDMI_PHY_CONTROL
	.comm	_PMU_HDMI_PHY_ENABLE_BIT,4,2    ## @PMU_HDMI_PHY_ENABLE_BIT
	.comm	_HDMI_PHY_CON_0,4,2             ## @HDMI_PHY_CON_0
	.comm	_HDMI_PHY_POWER_OFF_EN,4,2      ## @HDMI_PHY_POWER_OFF_EN
	.no_dead_strip	_hdmiphy_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmiphy_enable
_hdmiphy_enable:                        ; @hdmiphy_enable
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_pm_runtime_get_sync
Lloh0:
	adrp	x8, _supply@GOTPAGE
Lloh1:
	ldr	x8, [x8, _supply@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	ldr	w1, [x19, #12]
	bl	_regulator_bulk_enable
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
LBB0_3:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _PMU_HDMI_PHY_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PMU_HDMI_PHY_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _PMU_HDMI_PHY_ENABLE_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMU_HDMI_PHY_ENABLE_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w20, #1
	mov	w3, #1
	bl	_regmap_update_bits
	mov	x0, x19
	mov	w1, #1
	bl	_hdmi_set_refclk
Lloh11:
	adrp	x8, _HDMI_PHY_CON_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_PHY_CON_0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _HDMI_PHY_POWER_OFF_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI_PHY_POWER_OFF_EN@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_reg_writemask
	mov	x0, x19
	bl	_hdmiphy_conf_apply
	str	w20, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_supply,4,2                     ; @supply
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable regulator bulk\n"

	.comm	_PMU_HDMI_PHY_CONTROL,4,2       ; @PMU_HDMI_PHY_CONTROL
	.comm	_PMU_HDMI_PHY_ENABLE_BIT,4,2    ; @PMU_HDMI_PHY_ENABLE_BIT
	.comm	_HDMI_PHY_CON_0,4,2             ; @HDMI_PHY_CON_0
	.comm	_HDMI_PHY_POWER_OFF_EN,4,2      ; @HDMI_PHY_POWER_OFF_EN
	.no_dead_strip	_hdmiphy_enable
.subsections_via_symbols
