	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra210_usb3_set_lfps_detect
_tegra210_usb3_set_lfps_detect:         ## @tegra210_usb3_set_lfps_detect
	.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
	movl	%edx, %r14d
	movl	%esi, %edx
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_tegra_xusb_find_port
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	8(%rax), %edi
	callq	_XUSB_PADCTL_UPHY_MISC_PAD_PX_CTL1
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_padctl_readl
	movq	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN@GOTPCREL(%rip), %rsi
	movq	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	orl	%edi, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	%cl, %esi
	orl	%edi, %esi
	orl	%edx, %esi
	testl	%r14d, %r14d
	cmovnel	%edx, %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_padctl_writel
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb3"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1,4,2 ## @XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK,4,2 ## @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT,4,2 ## @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN,4,2 ## @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD,4,2 ## @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL,4,2 ## @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL
	.no_dead_strip	_tegra210_usb3_set_lfps_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra210_usb3_set_lfps_detect
_tegra210_usb3_set_lfps_detect:         ; @tegra210_usb3_set_lfps_detect
	.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
	mov	x20, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_tegra_xusb_find_port
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x9, [x8]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x8, #8]
	bl	_XUSB_PADCTL_UPHY_MISC_PAD_PX_CTL1
	mov	x21, x0
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_padctl_readl
Lloh8:
	adrp	x8, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh14:
	adrp	x10, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD@GOTPAGE
Lloh18:
	ldr	x11, [x11, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w11, w10
	orr	w8, w10, w8
	bic	w8, w0, w8
Lloh20:
	adrp	x11, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL@GOTPAGE
Lloh21:
	ldr	x11, [x11, _XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	lsl	w9, w11, w9
	orr	w10, w10, w8
	orr	w9, w10, w9
	cmp	w20, #0
	csel	w1, w9, w8, eq
	mov	x0, x19
	mov	x2, x21
	bl	_padctl_writel
	mov	w0, #0
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb3"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1,4,2 ; @XUSB_PADCTL_UPHY_MISC_PAD_S0_CTL1
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK,4,2 ; @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_MASK
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT,4,2 ; @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_SHIFT
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN,4,2 ; @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD,4,2 ; @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_MODE_OVRD
	.comm	_XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL,4,2 ; @XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_IDLE_MODE_VAL
	.no_dead_strip	_tegra210_usb3_set_lfps_detect
.subsections_via_symbols
