	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	movq	_MASK_8_BIT_DEF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	(%r15), %rsi
	addq	$2, %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	(%r15), %rsi
	addq	$3, %rsi
	movq	_RELINK_TIME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	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	_ALL_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	popq	%rbx
	popq	%r12
	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	_MASK_8_BIT_DEF,4,2             ## @MASK_8_BIT_DEF
	.comm	_RELINK_TIME_MASK,4,2           ## @RELINK_TIME_MASK
	.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
	.comm	_ALL_POWER_DOWN,4,2             ## @ALL_POWER_DOWN
	.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
Lloh2:
	adrp	x22, _MASK_8_BIT_DEF@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MASK_8_BIT_DEF@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w3, #0
	bl	_rtsx_pci_write_register
	ldr	x8, [x21]
	add	x1, x8, #2
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_rtsx_pci_write_register
	ldr	x8, [x21]
	add	x1, x8, #3
Lloh4:
	adrp	x8, _RELINK_TIME_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RELINK_TIME_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtsx_pci_write_register
Lloh7:
	adrp	x8, _HOST_ENTER_S3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HOST_ENTER_S3@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	x1, [x19]
Lloh10:
	adrp	x8, _D3_DELINK_MODE_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D3_DELINK_MODE_EN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_rtsx_pci_write_register
LBB0_2:
Lloh13:
	adrp	x8, _FPDCTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FPDCTL@GOTPAGEOFF]
Lloh15:
	adrp	x9, _ALL_POWER_DOWN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ALL_POWER_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, x2
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTOLOAD_CFG_BASE,8,3          ; @AUTOLOAD_CFG_BASE
	.comm	_MASK_8_BIT_DEF,4,2             ; @MASK_8_BIT_DEF
	.comm	_RELINK_TIME_MASK,4,2           ; @RELINK_TIME_MASK
	.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
	.comm	_ALL_POWER_DOWN,4,2             ; @ALL_POWER_DOWN
	.no_dead_strip	_rtsx_base_force_power_down
.subsections_via_symbols
