	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_xusb_add_hsic_port
_tegra_xusb_add_hsic_port:              ## @tegra_xusb_add_hsic_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	%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
	movl	%esi, %r13d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_tegra_xusb_find_port_node
	movq	%rax, %r15
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movl	16(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r13d, %r8d
	callq	_tegra_xusb_port_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	4(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r12, %rdi
	callq	_tegra_xusb_hsic_port_parse_dt
	movl	%eax, %ebx
	movq	%r12, %rdi
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_11
LBB0_9:
	callq	_tegra_xusb_port_unregister
LBB0_11:
	movq	%r15, %rdi
	callq	_of_node_put
	movl	%ebx, %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	"hsic"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tegra_xusb_add_hsic_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_xusb_add_hsic_port
_tegra_xusb_add_hsic_port:              ; @tegra_xusb_add_hsic_port
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_tegra_xusb_find_port_node
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_of_device_is_available
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x20, #16]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x4, x22
	bl	_tegra_xusb_port_init
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x8, [x21, #8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x21, #4]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x19
	bl	_of_node_put
	mov	x0, x22
	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
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_9:
	mov	x22, x0
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	bl	_tegra_xusb_hsic_port_parse_dt
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	bl	_list_add_tail
	b	LBB0_7
LBB0_12:
	mov	x0, x21
	bl	_tegra_xusb_port_unregister
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hsic"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tegra_xusb_add_hsic_port
.subsections_via_symbols
