	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcie_phy_read
_pcie_phy_read:                         ## @pcie_phy_read
	.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	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_pcie_phy_wait_ack
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PCIE_PHY_CTRL_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCIE_PHY_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_dw_pcie_writel_dbi
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pcie_phy_poll_ack
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PCIE_PHY_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dw_pcie_readl_dbi
	movl	%eax, (%r15)
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dw_pcie_writel_dbi
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcie_phy_poll_ack              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_PHY_CTRL_RD,4,2           ## @PCIE_PHY_CTRL_RD
	.comm	_PCIE_PHY_CTRL,4,2              ## @PCIE_PHY_CTRL
	.comm	_PCIE_PHY_STAT,4,2              ## @PCIE_PHY_STAT
	.no_dead_strip	_pcie_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcie_phy_read
_pcie_phy_read:                         ; @pcie_phy_read
	.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	x21, x2
	mov	x19, x0
	ldr	x20, [x0]
	bl	_pcie_phy_wait_ack
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCIE_PHY_CTRL_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_PHY_CTRL_RD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x22, _PCIE_PHY_CTRL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCIE_PHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_dw_pcie_writel_dbi
	mov	x0, x19
	mov	w1, #1
	bl	_pcie_phy_poll_ack
	cbz	w0, LBB0_3
LBB0_2:
	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_3:
Lloh5:
	adrp	x8, _PCIE_PHY_STAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIE_PHY_STAT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dw_pcie_readl_dbi
	str	w0, [x21]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_dw_pcie_writel_dbi
	mov	x0, x19
	mov	w1, #0
	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	_pcie_phy_poll_ack
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_PHY_CTRL_RD,4,2           ; @PCIE_PHY_CTRL_RD
	.comm	_PCIE_PHY_CTRL,4,2              ; @PCIE_PHY_CTRL
	.comm	_PCIE_PHY_STAT,4,2              ; @PCIE_PHY_STAT
	.no_dead_strip	_pcie_phy_read
.subsections_via_symbols
