	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_phy_power_on
_dw_hdmi_phy_power_on:                  ## @dw_hdmi_phy_power_on
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpl	$1, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_phy_enable_powerdown
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_phy_enable_tmds
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dw_hdmi_phy_enable_tmds
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dw_hdmi_phy_gen2_txpwron
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_phy_gen2_pddq
	movq	_HDMI_PHY_STAT0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movq	_HDMI_PHY_TX_PHY_LOCK@GOTPCREL(%rip), %r12
	movl	$0, %edx
	testl	%eax, (%r12)
	jne	LBB0_8
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movl	$1, %edx
	testl	%eax, (%r12)
	jne	LBB0_8
## %bb.4:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movl	$2, %edx
	testl	%eax, (%r12)
	jne	LBB0_8
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movl	$3, %edx
	testl	%eax, (%r12)
	jne	LBB0_8
## %bb.6:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movl	$4, %edx
	testl	%eax, (%r12)
	je	LBB0_7
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_PHY_STAT0,4,2             ## @HDMI_PHY_STAT0
	.comm	_HDMI_PHY_TX_PHY_LOCK,4,2       ## @HDMI_PHY_TX_PHY_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY PLL failed to lock\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"PHY PLL locked %u iterations\n"

	.no_dead_strip	_dw_hdmi_phy_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_phy_power_on
_dw_hdmi_phy_power_on:                  ; @dw_hdmi_phy_power_on
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_dw_hdmi_phy_enable_powerdown
	mov	x0, x19
	mov	w1, #0
	bl	_dw_hdmi_phy_enable_tmds
	mov	x0, x19
	mov	w1, #1
	bl	_dw_hdmi_phy_enable_tmds
	b	LBB0_12
LBB0_2:
	mov	w1, #1
	bl	_dw_hdmi_phy_gen2_txpwron
	mov	x0, x19
	mov	w1, #0
	bl	_dw_hdmi_phy_gen2_pddq
Lloh0:
	adrp	x20, _HDMI_PHY_STAT0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HDMI_PHY_STAT0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_readb
	mov	w2, #0
Lloh2:
	adrp	x21, _HDMI_PHY_TX_PHY_LOCK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDMI_PHY_TX_PHY_LOCK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.3:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_readb
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	w2, #1
	b	LBB0_11
LBB0_5:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_readb
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	mov	w2, #2
	b	LBB0_11
LBB0_7:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_readb
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	mov	w2, #3
	b	LBB0_11
LBB0_9:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_readb
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.10:
	mov	w2, #4
LBB0_11:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_12:
	mov	w0, #0
LBB0_13:
	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_14:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_PHY_STAT0,4,2             ; @HDMI_PHY_STAT0
	.comm	_HDMI_PHY_TX_PHY_LOCK,4,2       ; @HDMI_PHY_TX_PHY_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY PLL failed to lock\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"PHY PLL locked %u iterations\n"

	.no_dead_strip	_dw_hdmi_phy_power_on
.subsections_via_symbols
