	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_port
_process_port:                          ## @process_port
	.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	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_OF_getprop_alloc
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_search_port
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	cmpl	$128, (%rax)
	jne	LBB0_8
## %bb.6:
	leaq	32(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jle	LBB0_7
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	callq	_OF_hasprop
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%r14), %edi
	movq	%r15, %rcx
	addq	$28, %rcx
	leaq	L_.str.5(%rip), %rdx
	xorl	%esi, %esi
	callq	_regulator_get_by_ofw_property
	testl	%eax, %eax
	jle	LBB0_10
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	callq	_OF_hasprop
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	$1, 4(%r15)
LBB0_13:
	cmpq	$0, 16(%r15)
	jne	LBB0_23
## %bb.14:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_22
## %bb.15:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_20:
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_search_usb3_pad_lane
	jmp	LBB0_21
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_3:
	movl	(%r14), %edi
	movq	-32(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movl	(%r14), %edi
	movq	-32(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_10:
	movl	(%r14), %edi
	movq	-32(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_4
LBB0_16:
	movq	_PADCTL_PAD_USB2@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_18:
	movq	_PADCTL_PAD_ULPI@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_19:
	movq	_PADCTL_PAD_HSIC@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	movl	24(%r15), %edx
	movq	%r14, %rdi
	callq	_search_pad_lane
LBB0_21:
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_22
LBB0_23:
	movl	$1, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_22:
	movl	(%r14), %edi
	movq	-32(%rbp), %rdx
	leaq	L_.str.8(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_24:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_OF_prop_free
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot read port name.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"Unknown port: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"nvidia,usb2-companion"

L_.str.4:                               ## @.str.4
	.asciz	"Missing 'nvidia,usb2-companion' property for port: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"vbus-supply"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot get 'vbus-supply' regulator for port: %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"nvidia,internal"

	.comm	_PADCTL_PAD_USB2,4,2            ## @PADCTL_PAD_USB2
	.comm	_PADCTL_PAD_ULPI,4,2            ## @PADCTL_PAD_ULPI
	.comm	_PADCTL_PAD_HSIC,4,2            ## @PADCTL_PAD_HSIC
L_.str.8:                               ## @.str.8
	.asciz	"Cannot find lane for port: %s\n"

	.no_dead_strip	_process_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_port
_process_port:                          ; @process_port
	.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	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_OF_getprop_alloc
	cmp	w0, #0
	b.le	LBB0_12
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_search_port
	cbz	x0, LBB0_13
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	add	x2, x20, #32
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #0
	b.le	LBB0_14
LBB0_4:
Lloh4:
	adrp	x1, l_.str.5@PAGE
Lloh5:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_OF_hasprop
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	add	x3, x20, #28
Lloh6:
	adrp	x2, l_.str.5@PAGE
Lloh7:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #0
	bl	_regulator_get_by_ofw_property
	cmp	w0, #0
	b.le	LBB0_15
LBB0_6:
Lloh8:
	adrp	x1, l_.str.7@PAGE
Lloh9:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_OF_hasprop
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_8:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_21
; %bb.9:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.10:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_search_usb3_pad_lane
	b	LBB0_20
LBB0_12:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	b	LBB0_25
LBB0_13:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_14:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_15:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_16:
Lloh23:
	adrp	x8, _PADCTL_PAD_USB2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PADCTL_PAD_USB2@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh25:
	adrp	x8, _PADCTL_PAD_ULPI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PADCTL_PAD_ULPI@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh27:
	adrp	x8, _PADCTL_PAD_HSIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PADCTL_PAD_HSIC@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_search_pad_lane
LBB0_20:
	str	x0, [x20, #16]
	cbz	x0, LBB0_22
LBB0_21:
	mov	w19, #0
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_24
	b	LBB0_25
LBB0_22:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_23:
	bl	_device_printf
Lloh31:
	adrp	x8, _ENXIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_25
LBB0_24:
	bl	_OF_prop_free
LBB0_25:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot read port name.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"Unknown port: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"nvidia,usb2-companion"

l_.str.4:                               ; @.str.4
	.asciz	"Missing 'nvidia,usb2-companion' property for port: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"vbus-supply"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot get 'vbus-supply' regulator for port: %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"nvidia,internal"

	.comm	_PADCTL_PAD_USB2,4,2            ; @PADCTL_PAD_USB2
	.comm	_PADCTL_PAD_ULPI,4,2            ; @PADCTL_PAD_ULPI
	.comm	_PADCTL_PAD_HSIC,4,2            ; @PADCTL_PAD_HSIC
l_.str.8:                               ; @.str.8
	.asciz	"Cannot find lane for port: %s\n"

	.no_dead_strip	_process_port
.subsections_via_symbols
