	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_g12a_usb3_pcie_cr_bus_read
_phy_g12a_usb3_pcie_cr_bus_read:        ## @phy_g12a_usb3_pcie_cr_bus_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, %r14
	movq	%rdi, %rbx
	callq	_phy_g12a_usb3_pcie_cr_bus_addr
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_PHY_R4@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	_PHY_R4_PHY_CR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_PHY_R5@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	movl	$5, %r8d
	movl	$1000, %r9d                     ## imm = 0x3E8
	callq	_regmap_read_poll_timeout
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PHY_R5_PHY_CR_DATA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELD_GET
	movl	%eax, (%r14)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	$1, %ecx
	movl	$5, %r8d
	movl	$1000, %r9d                     ## imm = 0x3E8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_read_poll_timeout       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_R4,4,2                     ## @PHY_R4
	.comm	_PHY_R4_PHY_CR_READ,4,2         ## @PHY_R4_PHY_CR_READ
	.comm	_PHY_R5,4,2                     ## @PHY_R5
	.comm	_PHY_R5_PHY_CR_ACK,4,2          ## @PHY_R5_PHY_CR_ACK
	.comm	_PHY_R5_PHY_CR_DATA_OUT,4,2     ## @PHY_R5_PHY_CR_DATA_OUT
	.no_dead_strip	_phy_g12a_usb3_pcie_cr_bus_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_g12a_usb3_pcie_cr_bus_read
_phy_g12a_usb3_pcie_cr_bus_read:        ; @phy_g12a_usb3_pcie_cr_bus_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	x20, x2
	mov	x19, x0
	bl	_phy_g12a_usb3_pcie_cr_bus_addr
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x21, _PHY_R4@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHY_R4@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _PHY_R4_PHY_CR_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHY_R4_PHY_CR_READ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_regmap_write
	ldr	w0, [x19]
Lloh5:
	adrp	x22, _PHY_R5@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PHY_R5@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w3, #0
	mov	w4, #5
	mov	w5, #1000
	bl	_regmap_read_poll_timeout
	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:
Lloh7:
	adrp	x8, _PHY_R5_PHY_CR_DATA_OUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHY_R5_PHY_CR_DATA_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_FIELD_GET
	str	w0, [x20]
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	w3, #1
	mov	w4, #5
	mov	w5, #1000
	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	_regmap_read_poll_timeout
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_R4,4,2                     ; @PHY_R4
	.comm	_PHY_R4_PHY_CR_READ,4,2         ; @PHY_R4_PHY_CR_READ
	.comm	_PHY_R5,4,2                     ; @PHY_R5
	.comm	_PHY_R5_PHY_CR_ACK,4,2          ; @PHY_R5_PHY_CR_ACK
	.comm	_PHY_R5_PHY_CR_DATA_OUT,4,2     ; @PHY_R5_PHY_CR_DATA_OUT
	.no_dead_strip	_phy_g12a_usb3_pcie_cr_bus_read
.subsections_via_symbols
