	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_power_off
_tegra_pcie_power_off:                  ## @tegra_pcie_power_off
	.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	32(%rdi), %r14
	movq	24(%rdi), %r15
	movl	20(%rdi), %edi
	callq	_reset_control_assert
	movl	16(%rbx), %edi
	callq	_clk_disable_unprepare
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_2:
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	_TEGRA_POWERGATE_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tegra_powergate_power_off
LBB0_4:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_regulator_bulk_disable
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEGRA_POWERGATE_PCIE,4,2       ## @TEGRA_POWERGATE_PCIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable regulators: %d\n"

	.no_dead_strip	_tegra_pcie_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcie_power_off
_tegra_pcie_power_off:                  ; @tegra_pcie_power_off
	.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
	ldp	x21, x19, [x0, #24]
	ldr	w0, [x0, #20]
	bl	_reset_control_assert
	ldr	w0, [x20, #16]
	bl	_clk_disable_unprepare
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_clk_disable_unprepare
LBB0_2:
	ldr	w0, [x20, #8]
	bl	_clk_disable_unprepare
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _TEGRA_POWERGATE_PCIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEGRA_POWERGATE_PCIE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_tegra_powergate_power_off
LBB0_4:
	ldp	w1, w0, [x20]
	bl	_regulator_bulk_disable
	tbnz	w0, #31, LBB0_6
; %bb.5:
	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_6:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TEGRA_POWERGATE_PCIE,4,2       ; @TEGRA_POWERGATE_PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable regulators: %d\n"

	.no_dead_strip	_tegra_pcie_power_off
.subsections_via_symbols
