	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxnas_pcie_phy_init
_oxnas_pcie_phy_init:                   ## @oxnas_pcie_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movl	4(%rax), %edi
	movq	_SYS_CTRL_HCSL_CTRL_REGOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCSL_BIAS_ON@GOTPCREL(%rip), %rax
	movq	_HCSL_PCIE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_reset_control_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_reset_control_reset
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_reset_control_put
	testl	%r15d, %r15d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_CTRL_HCSL_CTRL_REGOFFSET,4,2 ## @SYS_CTRL_HCSL_CTRL_REGOFFSET
	.comm	_HCSL_BIAS_ON,4,2               ## @HCSL_BIAS_ON
	.comm	_HCSL_PCIE_EN,4,2               ## @HCSL_PCIE_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy"

L_.str.1:                               ## @.str.1
	.asciz	"phy reset failed %d\n"

	.no_dead_strip	_oxnas_pcie_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxnas_pcie_phy_init
_oxnas_pcie_phy_init:                   ; @oxnas_pcie_phy_init
	.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
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _SYS_CTRL_HCSL_CTRL_REGOFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_CTRL_HCSL_CTRL_REGOFFSET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HCSL_BIAS_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HCSL_BIAS_ON@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _HCSL_PCIE_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HCSL_PCIE_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_reset_control_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	cbz	w20, LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	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_4:
	mov	x0, x21
	bl	_reset_control_reset
	mov	x20, x0
	mov	x0, x21
	bl	_reset_control_put
	cbnz	w20, LBB0_2
	b	LBB0_3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_CTRL_HCSL_CTRL_REGOFFSET,4,2 ; @SYS_CTRL_HCSL_CTRL_REGOFFSET
	.comm	_HCSL_BIAS_ON,4,2               ; @HCSL_BIAS_ON
	.comm	_HCSL_PCIE_EN,4,2               ; @HCSL_PCIE_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy"

l_.str.1:                               ; @.str.1
	.asciz	"phy reset failed %d\n"

	.no_dead_strip	_oxnas_pcie_phy_init
.subsections_via_symbols
