	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_base_force_power_down
_rtsx_base_force_power_down:            ## @rtsx_base_force_power_down
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_AUTOLOAD_CFG_BASE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	incq	%rsi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	(%r15), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	(%r15), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	_HOST_ENTER_S3@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movq	_D3_DELINK_MODE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_rtsx_pci_write_register
LBB0_2:
	movq	_FPDCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	movl	$3, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsx_pci_write_register        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTOLOAD_CFG_BASE,8,3          ## @AUTOLOAD_CFG_BASE
	.comm	_HOST_ENTER_S3,8,3              ## @HOST_ENTER_S3
	.comm	_D3_DELINK_MODE_EN,4,2          ## @D3_DELINK_MODE_EN
	.comm	_FPDCTL,8,3                     ## @FPDCTL
	.no_dead_strip	_rtsx_base_force_power_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsx_base_force_power_down
_rtsx_base_force_power_down:            ; @rtsx_base_force_power_down
	.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
Lloh0:
	adrp	x21, _AUTOLOAD_CFG_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AUTOLOAD_CFG_BASE@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	w2, #255
	mov	w3, #0
	bl	_rtsx_pci_write_register
	ldr	x8, [x21]
	add	x1, x8, #2
	mov	x0, x19
	mov	w2, #255
	mov	w3, #0
	bl	_rtsx_pci_write_register
	ldr	x8, [x21]
	add	x1, x8, #3
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_rtsx_pci_write_register
Lloh2:
	adrp	x8, _HOST_ENTER_S3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HOST_ENTER_S3@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	x1, [x19]
Lloh5:
	adrp	x8, _D3_DELINK_MODE_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D3_DELINK_MODE_EN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_rtsx_pci_write_register
LBB0_2:
Lloh8:
	adrp	x8, _FPDCTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FPDCTL@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #3
	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	_rtsx_pci_write_register
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTOLOAD_CFG_BASE,8,3          ; @AUTOLOAD_CFG_BASE
	.comm	_HOST_ENTER_S3,8,3              ; @HOST_ENTER_S3
	.comm	_D3_DELINK_MODE_EN,4,2          ; @D3_DELINK_MODE_EN
	.comm	_FPDCTL,8,3                     ; @FPDCTL
	.no_dead_strip	_rtsx_base_force_power_down
.subsections_via_symbols
