	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_lane
_process_lane:                          ## @process_lane
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movl	%r12d, %edi
	callq	_OF_getprop_alloc
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_search_lane
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r12d, %edi
	callq	_OF_getprop_alloc
	testl	%eax, %eax
	jle	LBB0_6
## %bb.14:
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_search_mux
	movl	%eax, 16(%rbx)
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_config_lane
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	movq	-40(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_8
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	movl	(%r14), %edi
	movq	-40(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_8
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_8
LBB0_15:
	movl	(%r14), %edi
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rcx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_OF_prop_free
LBB0_11:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_OF_prop_free
LBB0_13:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r15, 8(%rbx)
	movl	$1, (%rbx)
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r15)
	movq	%rbx, (%rax,%rcx,8)
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_lanes_tbl@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	negq	%rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -56(%rbp)
	movl	%r12d, -64(%rbp)
	movl	(%r14), %edi
	movq	_xusbpadctl_phynode_class@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_phynode_create
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %rdi
	callq	_phynode_register
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.21:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_2
LBB0_19:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"nvidia,function"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot read lane function.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unknown function %s for lane %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot configure lane: %s: %d\n"

	.comm	_lanes_tbl,4,2                  ## @lanes_tbl
	.comm	_xusbpadctl_phynode_class,4,2   ## @xusbpadctl_phynode_class
L_.str.7:                               ## @.str.7
	.asciz	"Cannot create phy\n"

	.no_dead_strip	_process_lane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_lane
_process_lane:                          ; @process_lane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_OF_getprop_alloc
	cmp	w0, #0
	b.le	LBB0_6
; %bb.1:
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_search_lane
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #16
	mov	x0, x20
	bl	_OF_getprop_alloc
	cmp	w0, #0
	b.le	LBB0_9
; %bb.3:
	ldr	x2, [sp, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_search_mux
	str	w0, [x22, #16]
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	bl	_config_lane
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_16
; %bb.5:
	ldr	w8, [x19]
	ldr	x9, [sp, #24]
	stp	x9, x0, [sp]
Lloh4:
	adrp	x1, l_.str.6@PAGE
Lloh5:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x8
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_device_printf
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_8:
	ldr	w0, [x19]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19]
	ldp	x8, x9, [sp, #16]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	bl	_device_printf
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_13
LBB0_12:
	bl	_OF_prop_free
LBB0_13:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_OF_prop_free
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	str	x21, [x22, #8]
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	add	w10, w9, #1
	str	w10, [x21]
	str	x22, [x8, x9, lsl #3]
	add	x0, sp, #32
	mov	w1, #16
	bl	_bzero
Lloh20:
	adrp	x8, _lanes_tbl@GOTPAGE
Lloh21:
	ldr	x8, [x8, _lanes_tbl@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	mov	w9, #24
	mneg	x8, x8, x9
	add	x8, x22, x8
	str	x8, [sp, #40]
	str	w20, [sp, #32]
	ldr	w0, [x19]
Lloh23:
	adrp	x1, _xusbpadctl_phynode_class@GOTPAGE
Lloh24:
	ldr	x1, [x1, _xusbpadctl_phynode_class@GOTPAGEOFF]
	add	x2, sp, #32
	bl	_phynode_create
	cbz	x0, LBB0_19
; %bb.17:
	bl	_phynode_register
	cbz	x0, LBB0_20
; %bb.18:
	mov	w19, #0
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_12
	b	LBB0_13
LBB0_19:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_20:
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"nvidia,function"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot read lane function.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unknown function %s for lane %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot configure lane: %s: %d\n"

	.comm	_lanes_tbl,4,2                  ; @lanes_tbl
	.comm	_xusbpadctl_phynode_class,4,2   ; @xusbpadctl_phynode_class
l_.str.7:                               ; @.str.7
	.asciz	"Cannot create phy\n"

	.no_dead_strip	_process_lane
.subsections_via_symbols
