	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function miphy_is_ready
_miphy_is_ready:                        ## @miphy_is_ready
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_jiffies@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %r13
	movq	_HFC_PLL@GOTPCREL(%rip), %rcx
	movq	_HFC_RDY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	(%rdi), %rdx
	movq	_PHY_TYPE_SATA@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_PHY_RDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%ecx, %ebx
	addq	%rax, %r13
	movq	_MIPHY_STATUS_1@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readb_relaxed
	notl	%eax
	testl	%eax, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_time_after_eq
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_HFC_PLL,4,2                    ## @HFC_PLL
	.comm	_HFC_RDY,4,2                    ## @HFC_RDY
	.comm	_PHY_TYPE_SATA,8,3              ## @PHY_TYPE_SATA
	.comm	_PHY_RDY,4,2                    ## @PHY_RDY
	.comm	_MIPHY_STATUS_1,8,3             ## @MIPHY_STATUS_1
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_miphy_is_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function miphy_is_ready
_miphy_is_ready:                        ; @miphy_is_ready
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x21]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
Lloh5:
	adrp	x10, _HFC_PLL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HFC_PLL@GOTPAGEOFF]
	add	x20, x9, x8
Lloh7:
	ldr	w8, [x10]
Lloh8:
	adrp	x9, _HFC_RDY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HFC_RDY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x0]
Lloh11:
	adrp	x10, _PHY_TYPE_SATA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PHY_TYPE_SATA@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _PHY_RDY@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PHY_RDY@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w22, w8, w9
Lloh17:
	adrp	x23, _MIPHY_STATUS_1@GOTPAGE
Lloh18:
	ldr	x23, [x23, _MIPHY_STATUS_1@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readb_relaxed
	bics	wzr, w22, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	ldr	w0, [x21]
	mov	x1, x20
	bl	_time_after_eq
	cbz	w0, LBB0_1
; %bb.3:
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_HFC_PLL,4,2                    ; @HFC_PLL
	.comm	_HFC_RDY,4,2                    ; @HFC_RDY
	.comm	_PHY_TYPE_SATA,8,3              ; @PHY_TYPE_SATA
	.comm	_PHY_RDY,4,2                    ; @PHY_RDY
	.comm	_MIPHY_STATUS_1,8,3             ; @MIPHY_STATUS_1
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_miphy_is_ready
.subsections_via_symbols
