	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_lock
_wait_for_lock:                         ## @wait_for_lock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PLL_LOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$10, %eax
	jl	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movl	%eax, %eax
	movl	$3435973837, %ebx               ## imm = 0xCCCCCCCD
	imulq	%rax, %rbx
	shrq	$35, %rbx
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_is_locked
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_DELAY
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_2
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_LOCK_TIMEOUT,4,2           ## @PLL_LOCK_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"PLL lock timeout"

	.no_dead_strip	_wait_for_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_lock
_wait_for_lock:                         ; @wait_for_lock
	.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
Lloh0:
	adrp	x8, _PLL_LOCK_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLL_LOCK_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #10
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #35
	add	w20, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_is_locked
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_DELAY
	sub	w20, w20, #1
	cmp	w20, #1
	b.gt	LBB0_2
LBB0_4:
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh5:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_LOCK_TIMEOUT,4,2           ; @PLL_LOCK_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"PLL lock timeout"

	.no_dead_strip	_wait_for_lock
.subsections_via_symbols
