	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra124_usb2_phy_power_off
_tegra124_usb2_phy_power_off:           ## @tegra124_usb2_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_phy_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	callq	_to_usb2_pad
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_tegra_xusb_find_usb2_port
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r13, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	(%r13), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r13)
	cmpq	$1, %rax
	jg	LBB0_5
## %bb.4:
	movq	_XUSB_PADCTL_USB2_BIAS_PAD_CTL0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_padctl_readl
	movq	_XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_padctl_writel
LBB0_5:
	movl	(%r15), %edi
	callq	_regulator_disable
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no port found for USB2 lane %u\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_XUSB_PADCTL_USB2_BIAS_PAD_CTL0,4,2 ## @XUSB_PADCTL_USB2_BIAS_PAD_CTL0
	.comm	_XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD,4,2 ## @XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD
	.no_dead_strip	_tegra124_usb2_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 tegra124_usb2_phy_power_off
_tegra124_usb2_phy_power_off:           ; @tegra124_usb2_phy_power_off
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_phy_get_drvdata
	mov	x23, x0
	ldr	x0, [x0, #8]
	bl	_to_usb2_pad
	mov	x22, x0
	ldr	x8, [x23, #8]
	ldr	x19, [x8]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_tegra_xusb_find_usb2_port
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x20, x22, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x22]
	subs	x8, x8, #1
	str	x8, [x22]
	b.gt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x22, _XUSB_PADCTL_USB2_BIAS_PAD_CTL0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XUSB_PADCTL_USB2_BIAS_PAD_CTL0@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_padctl_readl
Lloh2:
	adrp	x8, _XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_padctl_writel
LBB0_4:
	ldr	w0, [x21]
	bl	_regulator_disable
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w2, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no port found for USB2 lane %u\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_XUSB_PADCTL_USB2_BIAS_PAD_CTL0,4,2 ; @XUSB_PADCTL_USB2_BIAS_PAD_CTL0
	.comm	_XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD,4,2 ; @XUSB_PADCTL_USB2_BIAS_PAD_CTL0_PD
	.no_dead_strip	_tegra124_usb2_phy_power_off
.subsections_via_symbols
