	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_get_legacy_regulators
_tegra_pcie_get_legacy_regulators:      ## @tegra_pcie_get_legacy_regulators
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	(%r14), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$3, (%rbx)
	movl	$3, %esi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$2, (%rbx)
	movl	$2, %esi
	jmp	LBB0_2
LBB0_6:
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_7
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, 8(%rax)
	movl	(%rbx), %esi
	cmpl	$3, %esi
	jl	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rcx
	movq	%rcx, 16(%rax)
LBB0_11:
	movq	%r14, %rdi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_regulator_bulk_get        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvidia,tegra30-pcie"

L_.str.1:                               ## @.str.1
	.asciz	"nvidia,tegra20-pcie"

L_.str.2:                               ## @.str.2
	.asciz	"device %pOF not supported in legacy mode\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"pex-clk"

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

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

	.no_dead_strip	_tegra_pcie_get_legacy_regulators
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcie_get_legacy_regulators
_tegra_pcie_get_legacy_regulators:      ; @tegra_pcie_get_legacy_regulators
	.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, x0
	ldr	x19, [x0, #16]
	ldr	x21, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #3
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	x0, LBB0_11
; %bb.3:
	mov	w1, #2
LBB0_4:
	str	w1, [x20]
LBB0_5:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.6:
	mov	x2, x0
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh9:
	adrp	x9, l_.str.4@PAGE
Lloh10:
	add	x9, x9, l_.str.4@PAGEOFF
	stp	x8, x9, [x0]
	ldr	w1, [x20]
	cmp	w1, #3
	b.lt	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, l_.str.5@PAGE
Lloh12:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x2, #16]
LBB0_8:
	mov	x0, x19
	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	_devm_regulator_bulk_get
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	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_11:
	ldr	w1, [x20]
	cbnz	w1, LBB0_5
; %bb.12:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvidia,tegra30-pcie"

l_.str.1:                               ; @.str.1
	.asciz	"nvidia,tegra20-pcie"

l_.str.2:                               ; @.str.2
	.asciz	"device %pOF not supported in legacy mode\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"pex-clk"

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

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

	.no_dead_strip	_tegra_pcie_get_legacy_regulators
.subsections_via_symbols
