	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dp_phy_power_off
_rockchip_dp_phy_power_off:             ## @rockchip_dp_phy_power_off
	.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, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_MODE_DISCONNECT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.1:
	movq	_MODE_DFP_DP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rcx, %rax
	movq	%rax, (%rbx)
	movq	_DP_MODE_ENTER_A2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DP_MODE_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_tcphy_phy_deinit
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_DISCONNECT,8,3            ## @MODE_DISCONNECT
	.comm	_MODE_DFP_DP,8,3                ## @MODE_DFP_DP
	.comm	_DP_MODE_ENTER_A2,4,2           ## @DP_MODE_ENTER_A2
	.comm	_DP_MODE_CTL,8,3                ## @DP_MODE_CTL
	.no_dead_strip	_rockchip_dp_phy_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_dp_phy_power_off
_rockchip_dp_phy_power_off:             ; @rockchip_dp_phy_power_off
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _MODE_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MODE_DISCONNECT@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _MODE_DFP_DP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MODE_DFP_DP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	bic	x8, x8, x9
	str	x8, [x20]
Lloh5:
	adrp	x8, _DP_MODE_ENTER_A2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_MODE_ENTER_A2@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
Lloh8:
	adrp	x9, _DP_MODE_CTL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DP_MODE_CTL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_tcphy_phy_deinit
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_DISCONNECT,8,3            ; @MODE_DISCONNECT
	.comm	_MODE_DFP_DP,8,3                ; @MODE_DFP_DP
	.comm	_DP_MODE_ENTER_A2,4,2           ; @DP_MODE_ENTER_A2
	.comm	_DP_MODE_CTL,8,3                ; @DP_MODE_CTL
	.no_dead_strip	_rockchip_dp_phy_power_off
.subsections_via_symbols
