	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_xusb_usb2_port_parse_dt
_tegra_xusb_usb2_port_parse_dt:         ## @tegra_xusb_usb2_port_parse_dt
	.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
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	16(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movl	%eax, 8(%r15)
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_USB_DR_MODE_HOST@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	movq	_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	-32(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_match_string
	testl	%eax, %eax
	js	LBB0_2
LBB0_5:
	movl	%eax, (%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_PTR_ERR_OR_ZERO
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-32(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_USB_DR_MODE_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvidia,internal"

L_.str.1:                               ## @.str.1
	.asciz	"mode"

	.comm	_modes,4,2                      ## @modes
L_.str.2:                               ## @.str.2
	.asciz	"invalid value %s for \"mode\"\n"

	.comm	_USB_DR_MODE_UNKNOWN,4,2        ## @USB_DR_MODE_UNKNOWN
	.comm	_USB_DR_MODE_HOST,4,2           ## @USB_DR_MODE_HOST
L_.str.3:                               ## @.str.3
	.asciz	"vbus"

	.no_dead_strip	_tegra_xusb_usb2_port_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_xusb_usb2_port_parse_dt
_tegra_xusb_usb2_port_parse_dt:         ; @tegra_xusb_usb2_port_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x21, [x20, #16]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	stur	w0, [x20, #-8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_of_property_read_string
	cbz	w0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _USB_DR_MODE_HOST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_DR_MODE_HOST@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _modes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _modes@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x21
	bl	_match_string
	tbnz	w0, #31, LBB0_5
LBB0_4:
	str	w0, [x19]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19, #4]
	bl	_PTR_ERR_OR_ZERO
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x2, [sp, #8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh13:
	adrp	x8, _USB_DR_MODE_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _USB_DR_MODE_UNKNOWN@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvidia,internal"

l_.str.1:                               ; @.str.1
	.asciz	"mode"

	.comm	_modes,4,2                      ; @modes
l_.str.2:                               ; @.str.2
	.asciz	"invalid value %s for \"mode\"\n"

	.comm	_USB_DR_MODE_UNKNOWN,4,2        ; @USB_DR_MODE_UNKNOWN
	.comm	_USB_DR_MODE_HOST,4,2           ; @USB_DR_MODE_HOST
l_.str.3:                               ; @.str.3
	.asciz	"vbus"

	.no_dead_strip	_tegra_xusb_usb2_port_parse_dt
.subsections_via_symbols
