	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmiphy_wait_for_pll
_hdmiphy_wait_for_pll:                  ## @hdmiphy_wait_for_pll
	.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, %rbx
	movq	_HDMI_PHY_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_hdmi_reg_read
	movq	_HDMI_PHY_STATUS_READY@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.1:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$1, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.2:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$2, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.3:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$3, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.4:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$4, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.5:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$5, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.6:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$6, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.7:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$7, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.8:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$8, %edx
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.9:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hdmi_reg_read
	movl	$9, %edx
	testl	%eax, (%r15)
	je	LBB0_10
LBB0_11:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEV_DEBUG_KMS              ## TAILCALL
LBB0_10:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEV_ERROR                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_PHY_STATUS,4,2            ## @HDMI_PHY_STATUS
	.comm	_HDMI_PHY_STATUS_READY,4,2      ## @HDMI_PHY_STATUS_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL stabilized after %d tries\n"

L_.str.1:                               ## @.str.1
	.asciz	"PLL could not reach steady state\n"

	.no_dead_strip	_hdmiphy_wait_for_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmiphy_wait_for_pll
_hdmiphy_wait_for_pll:                  ; @hdmiphy_wait_for_pll
	.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	x20, _HDMI_PHY_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HDMI_PHY_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_hdmi_reg_read
Lloh2:
	adrp	x21, _HDMI_PHY_STATUS_READY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDMI_PHY_STATUS_READY@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w2, #0
	b	LBB0_20
LBB0_2:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	w2, #1
	b	LBB0_20
LBB0_4:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	w2, #2
	b	LBB0_20
LBB0_6:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
	mov	w2, #3
	b	LBB0_20
LBB0_8:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	mov	w2, #4
	b	LBB0_20
LBB0_10:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:
	mov	w2, #5
	b	LBB0_20
LBB0_12:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:
	mov	w2, #6
	b	LBB0_20
LBB0_14:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.15:
	mov	w2, #7
	b	LBB0_20
LBB0_16:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_18
; %bb.17:
	mov	w2, #8
	b	LBB0_20
LBB0_18:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hdmi_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.19:
	mov	w2, #9
LBB0_20:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@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_DEV_DEBUG_KMS
LBB0_21:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, 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_DEV_ERROR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_PHY_STATUS,4,2            ; @HDMI_PHY_STATUS
	.comm	_HDMI_PHY_STATUS_READY,4,2      ; @HDMI_PHY_STATUS_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL stabilized after %d tries\n"

l_.str.1:                               ; @.str.1
	.asciz	"PLL could not reach steady state\n"

	.no_dead_strip	_hdmiphy_wait_for_pll
.subsections_via_symbols
