	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_usb_phy_remove
_cpcap_usb_phy_remove:                  ## @cpcap_usb_phy_remove
	.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	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	20(%rax), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_cpcap_usb_set_uart_mode
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	_MUSB_VBUS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_musb_mailbox
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_4:
	leaq	12(%rbx), %rdi
	callq	_usb_remove_phy
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_cancel_delayed_work_sync
	movl	4(%rbx), %edi
	callq	_clk_unprepare
	movl	(%rbx), %edi
	callq	_regulator_disable
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not set UART mode\n"

	.comm	_MUSB_VBUS_OFF,4,2              ## @MUSB_VBUS_OFF
L_.str.1:                               ## @.str.1
	.asciz	"could not set mailbox\n"

	.no_dead_strip	_cpcap_usb_phy_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_usb_phy_remove
_cpcap_usb_phy_remove:                  ; @cpcap_usb_phy_remove
	.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	_platform_get_drvdata
	mov	x19, x0
	add	x0, x0, #20
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	bl	_cpcap_usb_set_uart_mode
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
Lloh2:
	adrp	x8, _MUSB_VBUS_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MUSB_VBUS_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_musb_mailbox
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
	add	x0, x19, #12
	bl	_usb_remove_phy
	add	x0, x19, #8
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19, #4]
	bl	_clk_unprepare
	ldr	w0, [x19]
	bl	_regulator_disable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not set UART mode\n"

	.comm	_MUSB_VBUS_OFF,4,2              ; @MUSB_VBUS_OFF
l_.str.1:                               ; @.str.1
	.asciz	"could not set mailbox\n"

	.no_dead_strip	_cpcap_usb_phy_remove
.subsections_via_symbols
