	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_bpmp_set_ctrl_state
_tegra_pcie_bpmp_set_ctrl_state:        ## @tegra_pcie_bpmp_set_ctrl_state
	.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
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpl	$5, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-128(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_CMD_UPHY_PCIE_CONTROLLER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -92(%rbp)
	movl	%r15d, -88(%rbp)
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_MRQ_UPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, -56(%rbp)
	movl	$48, -64(%rbp)
	movq	%r12, -72(%rbp)
	movl	$48, -80(%rbp)
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	callq	_tegra_bpmp_transfer
LBB0_2:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_UPHY_PCIE_CONTROLLER_STATE,4,2 ## @CMD_UPHY_PCIE_CONTROLLER_STATE
	.comm	_MRQ_UPHY,4,2                   ## @MRQ_UPHY
	.no_dead_strip	_tegra_pcie_bpmp_set_ctrl_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcie_bpmp_set_ctrl_state
_tegra_pcie_bpmp_set_ctrl_state:        ; @tegra_pcie_bpmp_set_ctrl_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	ldr	w8, [x0]
	cmp	w8, #5
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	mov	x21, sp
	mov	w22, #48
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x23, sp, #96
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _CMD_UPHY_PCIE_CONTROLLER_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_UPHY_PCIE_CONTROLLER_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w20, w8, [sp, #40]
	ldr	w8, [x19]
	str	w8, [sp, #36]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh3:
	adrp	x8, _MRQ_UPHY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MRQ_UPHY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #80]
	str	x21, [sp, #72]
	str	w22, [sp, #64]
	str	x23, [sp, #56]
	str	w22, [sp, #48]
	ldr	w0, [x19, #4]
	add	x1, sp, #48
	bl	_tegra_bpmp_transfer
LBB0_3:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_UPHY_PCIE_CONTROLLER_STATE,4,2 ; @CMD_UPHY_PCIE_CONTROLLER_STATE
	.comm	_MRQ_UPHY,4,2                   ; @MRQ_UPHY
	.no_dead_strip	_tegra_pcie_bpmp_set_ctrl_state
.subsections_via_symbols
