	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddr_phy_poll_until_locked
_ddr_phy_poll_until_locked:             ## @ddr_phy_poll_until_locked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movq	_C_DDR_REG_PHY2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, -8(%rbp)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -4(%rbp)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %ecx
	movl	%ecx, -8(%rbp)
	movl	-8(%rbp), %ecx
	cmpl	$1073741824, %ecx               ## imm = 0x40000000
	jb	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -4(%rbp)
	jmp	LBB0_1
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_DDR_REG_PHY2,8,3             ## @C_DDR_REG_PHY2
	.no_dead_strip	_ddr_phy_poll_until_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddr_phy_poll_until_locked
_ddr_phy_poll_until_locked:             ; @ddr_phy_poll_until_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	str	wzr, [sp, #12]
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _C_DDR_REG_PHY2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_DDR_REG_PHY2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	str	w9, [sp, #12]
	ldr	w9, [sp, #8]
	cbz	w9, LBB0_2
LBB0_1:
	add	sp, sp, #16
	ret
LBB0_2:
	mov	w9, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [sp, #8]
	cbnz	w10, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	str	w10, [sp, #12]
	ldr	w10, [sp, #12]
	lsr	w10, w10, #30
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [sp, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_C_DDR_REG_PHY2,8,3             ; @C_DDR_REG_PHY2
	.no_dead_strip	_ddr_phy_poll_until_locked
.subsections_via_symbols
