	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_usb2phy_exit
_rockchip_usb2phy_exit:                 ## @rockchip_usb2phy_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_phy_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_USB2PHY_PORT_OTG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_USB_DR_MODE_HOST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.2:
	movq	_USB_DR_MODE_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	leaq	24(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	addq	$20, %rbx
	jmp	LBB0_6
LBB0_4:
	movq	_USB2PHY_PORT_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	addq	$16, %rbx
LBB0_6:
	movq	%rbx, %rdi
	callq	_cancel_delayed_work_sync
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB2PHY_PORT_OTG,8,3           ## @USB2PHY_PORT_OTG
	.comm	_USB_DR_MODE_HOST,8,3           ## @USB_DR_MODE_HOST
	.comm	_USB_DR_MODE_UNKNOWN,8,3        ## @USB_DR_MODE_UNKNOWN
	.comm	_USB2PHY_PORT_HOST,8,3          ## @USB2PHY_PORT_HOST
	.no_dead_strip	_rockchip_usb2phy_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_usb2phy_exit
_rockchip_usb2phy_exit:                 ; @rockchip_usb2phy_exit
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _USB2PHY_PORT_OTG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB2PHY_PORT_OTG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _USB_DR_MODE_HOST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USB_DR_MODE_HOST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _USB_DR_MODE_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x11, [x11, _USB_DR_MODE_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_4
LBB0_2:
Lloh9:
	adrp	x9, _USB2PHY_PORT_HOST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB2PHY_PORT_HOST@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	add	x0, x19, #16
	b	LBB0_5
LBB0_4:
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	add	x0, x19, #20
LBB0_5:
	bl	_cancel_delayed_work_sync
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_USB2PHY_PORT_OTG,8,3           ; @USB2PHY_PORT_OTG
	.comm	_USB_DR_MODE_HOST,8,3           ; @USB_DR_MODE_HOST
	.comm	_USB_DR_MODE_UNKNOWN,8,3        ; @USB_DR_MODE_UNKNOWN
	.comm	_USB2PHY_PORT_HOST,8,3          ; @USB2PHY_PORT_HOST
	.no_dead_strip	_rockchip_usb2phy_exit
.subsections_via_symbols
