	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_xusb_pad_create
_tegra_xusb_pad_create:                 ## @tegra_xusb_pad_create
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %esi
	callq	_tegra_xusb_find_pad_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	8(%r12), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	*(%rax)
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	40(%r14), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, 32(%r14)
LBB0_8:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	%r15, 24(%r14)
LBB0_10:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r15, 16(%r14)
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r15, 8(%r14)
LBB0_14:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r15, (%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create pad %s: %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"sata"

L_.str.3:                               ## @.str.3
	.asciz	"usb2"

L_.str.4:                               ## @.str.4
	.asciz	"ulpi"

L_.str.5:                               ## @.str.5
	.asciz	"hsic"

	.no_dead_strip	_tegra_xusb_pad_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_xusb_pad_create
_tegra_xusb_pad_create:                 ; @tegra_xusb_pad_create
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x1]
	bl	_tegra_xusb_find_pad_node
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.1:
	mov	x0, x21
	bl	_of_device_is_available
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	ldr	w0, [x19, #40]
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dev_err
	mov	x0, x21
	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
	b	_ERR_PTR
LBB0_4:
	mov	x21, #0
	b	LBB0_15
LBB0_5:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.6:
	str	x21, [x19, #32]
LBB0_7:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.8:
	str	x21, [x19, #24]
LBB0_9:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_11
; %bb.10:
	str	x21, [x19, #16]
LBB0_11:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_13
; %bb.12:
	str	x21, [x19, #8]
LBB0_13:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_15
; %bb.14:
	str	x21, [x19]
LBB0_15:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create pad %s: %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"sata"

l_.str.3:                               ; @.str.3
	.asciz	"usb2"

l_.str.4:                               ; @.str.4
	.asciz	"ulpi"

l_.str.5:                               ; @.str.5
	.asciz	"hsic"

	.no_dead_strip	_tegra_xusb_pad_create
.subsections_via_symbols
