	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hdmi_tx3g4c28phy_stop
_sti_hdmi_tx3g4c28phy_stop:             ## @sti_hdmi_tx3g4c28phy_stop
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	$0, (%r14)
	movq	_HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION@GOTPCREL(%rip), %rax
	movq	_HDMI_SRZ_CFG_EN_BIASRES_DETECTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_HDMI_SRZ_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hdmi_write
	movq	_HDMI_SRZ_PLL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hdmi_write
	xorl	%ebx, %ebx
	cmpl	$1, (%r14)
	movl	4(%r14), %r15d
	sete	%bl
	movq	_HDMI_TIMEOUT_PLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movq	_HDMI_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hdmi_read
	movq	_HDMI_STA_DLL_LCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION,4,2 ## @HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION
	.comm	_HDMI_SRZ_CFG_EN_BIASRES_DETECTION,4,2 ## @HDMI_SRZ_CFG_EN_BIASRES_DETECTION
	.comm	_HDMI_SRZ_CFG,4,2               ## @HDMI_SRZ_CFG
	.comm	_HDMI_SRZ_PLL_CFG,4,2           ## @HDMI_SRZ_PLL_CFG
	.comm	_HDMI_TIMEOUT_PLL_LOCK,4,2      ## @HDMI_TIMEOUT_PLL_LOCK
	.comm	_HDMI_STA,4,2                   ## @HDMI_STA
	.comm	_HDMI_STA_DLL_LCK,4,2           ## @HDMI_STA_DLL_LCK
L_.str.1:                               ## @.str.1
	.asciz	"hdmi phy pll not well disabled\n"

	.no_dead_strip	_sti_hdmi_tx3g4c28phy_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hdmi_tx3g4c28phy_stop
_sti_hdmi_tx3g4c28phy_stop:             ; @sti_hdmi_tx3g4c28phy_stop
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	str	wzr, [x19]
Lloh2:
	adrp	x8, _HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION@GOTPAGEOFF]
Lloh4:
	adrp	x9, _HDMI_SRZ_CFG_EN_BIASRES_DETECTION@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDMI_SRZ_CFG_EN_BIASRES_DETECTION@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh8:
	adrp	x8, _HDMI_SRZ_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_SRZ_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_write
Lloh11:
	adrp	x8, _HDMI_SRZ_PLL_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_SRZ_PLL_CFG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_hdmi_write
	ldp	w8, w20, [x19]
	cmp	w8, #1
	cset	w21, eq
Lloh14:
	adrp	x8, _HDMI_TIMEOUT_PLL_LOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI_TIMEOUT_PLL_LOCK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_interruptible_timeout
Lloh17:
	adrp	x8, _HDMI_STA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDMI_STA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
Lloh20:
	adrp	x8, _HDMI_STA_DLL_LCK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDMI_STA_DLL_LCK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_DRM_ERROR
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION,4,2 ; @HDMI_SRZ_CFG_EN_SINK_TERM_DETECTION
	.comm	_HDMI_SRZ_CFG_EN_BIASRES_DETECTION,4,2 ; @HDMI_SRZ_CFG_EN_BIASRES_DETECTION
	.comm	_HDMI_SRZ_CFG,4,2               ; @HDMI_SRZ_CFG
	.comm	_HDMI_SRZ_PLL_CFG,4,2           ; @HDMI_SRZ_PLL_CFG
	.comm	_HDMI_TIMEOUT_PLL_LOCK,4,2      ; @HDMI_TIMEOUT_PLL_LOCK
	.comm	_HDMI_STA,4,2                   ; @HDMI_STA
	.comm	_HDMI_STA_DLL_LCK,4,2           ; @HDMI_STA_DLL_LCK
l_.str.1:                               ; @.str.1
	.asciz	"hdmi phy pll not well disabled\n"

	.no_dead_strip	_sti_hdmi_tx3g4c28phy_stop
.subsections_via_symbols
