	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_pci_stop_cmd              ## -- Begin function rtsx_pci_stop_cmd
	.p2align	4, 0x90
_rtsx_pci_stop_cmd:                     ## @rtsx_pci_stop_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movq	_RTSX_HCBCTLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STOP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtsx_pci_writel
	movq	_RTSX_HDBCTLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STOP_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtsx_pci_writel
	movq	_DMACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_rtsx_pci_write_register
	movq	_RBCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	movl	$128, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtsx_pci_write_register        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTSX_HCBCTLR,4,2               ## @RTSX_HCBCTLR
	.comm	_STOP_CMD,4,2                   ## @STOP_CMD
	.comm	_RTSX_HDBCTLR,4,2               ## @RTSX_HDBCTLR
	.comm	_STOP_DMA,4,2                   ## @STOP_DMA
	.comm	_DMACTL,4,2                     ## @DMACTL
	.comm	_RBCTL,4,2                      ## @RBCTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_pci_stop_cmd              ; -- Begin function rtsx_pci_stop_cmd
	.p2align	2
_rtsx_pci_stop_cmd:                     ; @rtsx_pci_stop_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x1, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_2:
Lloh0:
	adrp	x8, _RTSX_HCBCTLR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTSX_HCBCTLR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _STOP_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STOP_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtsx_pci_writel
Lloh6:
	adrp	x8, _RTSX_HDBCTLR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTSX_HDBCTLR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _STOP_DMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STOP_DMA@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtsx_pci_writel
Lloh12:
	adrp	x8, _DMACTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMACTL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	mov	w3, #128
	bl	_rtsx_pci_write_register
Lloh15:
	adrp	x8, _RBCTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RBCTL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	mov	w3, #128
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_write_register
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTSX_HCBCTLR,4,2               ; @RTSX_HCBCTLR
	.comm	_STOP_CMD,4,2                   ; @STOP_CMD
	.comm	_RTSX_HDBCTLR,4,2               ; @RTSX_HDBCTLR
	.comm	_STOP_DMA,4,2                   ; @STOP_DMA
	.comm	_DMACTL,4,2                     ; @DMACTL
	.comm	_RBCTL,4,2                      ; @RBCTL
.subsections_via_symbols
