	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_sierra_phy_init
_cdns_sierra_phy_init:                  ## @cdns_sierra_phy_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_phy_get_drvdata
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	(%r15), %rdx
	movq	_PHY_TYPE_PCIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.1:
	movq	8(%r13), %rcx
	leaq	16(%rcx), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_PHY_TYPE_USB3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_11
## %bb.3:
	movq	8(%r13), %rdx
	leaq	4(%rdx), %rcx
	addq	$8, %rdx
LBB0_4:
	movl	8(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_11
## %bb.5:
	movq	(%rdx), %r12
	movl	(%rcx), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	shlq	$4, %rcx
	xorl	%ebx, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	%edi, %ebx
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r12,%r14), %edi
	movq	(%r12,%r14), %rdx
	addq	(%r13), %rdx
	movslq	12(%r15), %rcx
	movslq	%ebx, %rsi
	addq	%rcx, %rsi
	shlq	$11, %rsi
	addq	%rdx, %rsi
	callq	_writel
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %r14
	cmpq	%r14, %rcx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r15), %edi
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_PCIE,8,3              ## @PHY_TYPE_PCIE
	.comm	_PHY_TYPE_USB3,8,3              ## @PHY_TYPE_USB3
	.no_dead_strip	_cdns_sierra_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_sierra_phy_init
_cdns_sierra_phy_init:                  ; @cdns_sierra_phy_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	w0, [x20]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PHY_TYPE_PCIE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TYPE_PCIE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	add	x10, x9, #16
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _PHY_TYPE_USB3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_TYPE_USB3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x20, #8]
	add	x9, x8, #4
	add	x10, x8, #8
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	w21, #0
	ldr	x10, [x10]
	ldr	w22, [x9]
	add	x23, x10, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x22
	mov	x25, x23
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25]
	ldr	x8, [x20]
	ldur	x9, [x25, #-8]
	add	x8, x9, x8
	ldr	w9, [x19, #12]
	add	w9, w9, w21
	lsl	w9, w9, #11
	add	x1, x8, w9, sxtw
	bl	_writel
	add	x25, x25, #16
	subs	x24, x24, #1
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #8]
	b	LBB0_6
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_PCIE,8,3              ; @PHY_TYPE_PCIE
	.comm	_PHY_TYPE_USB3,8,3              ; @PHY_TYPE_USB3
	.no_dead_strip	_cdns_sierra_phy_init
.subsections_via_symbols
