	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_usb3_phy_power_off
_rockchip_usb3_phy_power_off:           ## @rockchip_usb3_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_phy_get_drvdata
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tcphy_cfg_usb3_to_usb2_only
	movq	(%rbx), %rax
	movq	_MODE_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_MODE_UFP_USB@GOTPCREL(%rip), %rdx
	movq	_MODE_DFP_USB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	notl	%esi
	movslq	%esi, %rdx
	andq	%rdx, %rax
	movq	%rax, (%rbx)
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_tcphy_phy_deinit
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_DISCONNECT,8,3            ## @MODE_DISCONNECT
	.comm	_MODE_UFP_USB,4,2               ## @MODE_UFP_USB
	.comm	_MODE_DFP_USB,4,2               ## @MODE_DFP_USB
	.no_dead_strip	_rockchip_usb3_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_usb3_phy_power_off
_rockchip_usb3_phy_power_off:           ; @rockchip_usb3_phy_power_off
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_phy_get_drvdata
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	w1, #0
	bl	_tcphy_cfg_usb3_to_usb2_only
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _MODE_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_DISCONNECT@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x10, _MODE_UFP_USB@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MODE_UFP_USB@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x11, _MODE_DFP_USB@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MODE_DFP_USB@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w10, w11, w10
	mvn	w10, w10
	sxtw	x10, w10
	and	x9, x9, x10
	str	x9, [x20]
	ldr	x8, [x8]
	cmp	x9, x8
	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, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_DISCONNECT,8,3            ; @MODE_DISCONNECT
	.comm	_MODE_UFP_USB,4,2               ; @MODE_UFP_USB
	.comm	_MODE_DFP_USB,4,2               ; @MODE_DFP_USB
	.no_dead_strip	_rockchip_usb3_phy_power_off
.subsections_via_symbols
