	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_xusb_pad_register        ## -- Begin function tegra_xusb_pad_register
	.p2align	4, 0x90
_tegra_xusb_pad_register:               ## @tegra_xusb_pad_register
	.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	%rsi, %r13
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	16(%r12), %r14
	movq	40(%r12), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_23
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r12), %rax
	cmpl	$0, (%rax)
	movl	$0, %ebx
	je	LBB0_15
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	40(%r12), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tegra_xusb_pad_find_phy_node
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_phy_create
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r12), %rax
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	*(%rax)
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r12), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	_phy_set_drvdata
	jmp	LBB0_14
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movq	_tegra_xusb_pad_of_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_of_phy_provider_register_full
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movl	$0, %r14d
	je	LBB0_22
## %bb.16:
	movq	8(%r12), %rdi
	jmp	LBB0_17
LBB0_23:
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_10:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_of_node_put
	jmp	LBB0_18
LBB0_12:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_phy_destroy
	movq	%r15, %rdi
LBB0_17:
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_18:
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.19:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rdi
	callq	_tegra_xusb_lane_destroy
	decq	%rbx
	jne	LBB0_20
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_node_put
LBB0_22:
	movl	%r14d, %eax
	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	"lanes"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tegra_xusb_pad_of_xlate,4,2    ## @tegra_xusb_pad_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_xusb_pad_register        ; -- Begin function tegra_xusb_pad_register
	.p2align	2
_tegra_xusb_pad_register:               ; @tegra_xusb_pad_register
	.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	x23, x1
	mov	x19, x0
	mov	x22, x0
	ldr	w0, [x22, #16]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_child_by_name
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #40]
	ldr	w1, [x8]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_of_node_put
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	cmp	x21, x8
	b.hs	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_tegra_xusb_pad_find_phy_node
	mov	x24, x0
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_of_device_is_available
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_phy_create
	ldr	x8, [x19]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbnz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	blr	x8
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #24]
	mov	x0, x24
	bl	_list_add_tail
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	mov	x1, x24
	bl	_phy_set_drvdata
	b	LBB0_5
LBB0_11:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_of_node_put
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_25
LBB0_14:
	mov	w21, #0
LBB0_15:
Lloh9:
	adrp	x8, _tegra_xusb_pad_of_xlate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tegra_xusb_pad_of_xlate@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_of_phy_provider_register_full
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x0, [x19, #8]
	b	LBB0_20
LBB0_17:
	mov	w22, #0
	b	LBB0_25
LBB0_18:
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	bl	_PTR_ERR
	mov	x22, x0
	mov	x0, x24
	bl	_of_node_put
	b	LBB0_21
LBB0_19:
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	bl	_phy_destroy
	mov	x0, x24
LBB0_20:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_21:
	cbz	w21, LBB0_24
; %bb.22:
	mov	w8, w21
	lsl	x8, x8, #3
	sub	x21, x8, #8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x21]
	bl	_tegra_xusb_lane_destroy
	sub	x21, x21, #8
	cmn	x21, #8
	b.ne	LBB0_23
LBB0_24:
	mov	x0, x20
	bl	_of_node_put
LBB0_25:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lanes"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tegra_xusb_pad_of_xlate,4,2    ; @tegra_xusb_pad_of_xlate
.subsections_via_symbols
