	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_adma_host_stop
_nv_adma_host_stop:                     ## @nv_adma_host_stop
	.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, %r14
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %rbx
	movq	_NV_MCP_SATA_CFG_20@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	callq	_pci_read_config_dword
	movq	_NV_MCP_SATA_CFG_20_PORT0_EN@GOTPCREL(%rip), %rax
	movq	_NV_MCP_SATA_CFG_20_PORT0_PWB_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_NV_MCP_SATA_CFG_20_PORT1_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_NV_MCP_SATA_CFG_20_PORT1_PWB_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	movq	%r14, %rdi
	callq	_nv_ck804_host_stop
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MCP_SATA_CFG_20,4,2         ## @NV_MCP_SATA_CFG_20
	.comm	_NV_MCP_SATA_CFG_20_PORT0_EN,4,2 ## @NV_MCP_SATA_CFG_20_PORT0_EN
	.comm	_NV_MCP_SATA_CFG_20_PORT0_PWB_EN,4,2 ## @NV_MCP_SATA_CFG_20_PORT0_PWB_EN
	.comm	_NV_MCP_SATA_CFG_20_PORT1_EN,4,2 ## @NV_MCP_SATA_CFG_20_PORT1_EN
	.comm	_NV_MCP_SATA_CFG_20_PORT1_PWB_EN,4,2 ## @NV_MCP_SATA_CFG_20_PORT1_PWB_EN
	.no_dead_strip	_nv_adma_host_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_adma_host_stop
_nv_adma_host_stop:                     ; @nv_adma_host_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0]
	bl	_to_pci_dev
	mov	x20, x0
Lloh0:
	adrp	x21, _NV_MCP_SATA_CFG_20@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NV_MCP_SATA_CFG_20@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
Lloh2:
	adrp	x8, _NV_MCP_SATA_CFG_20_PORT0_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NV_MCP_SATA_CFG_20_PORT0_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _NV_MCP_SATA_CFG_20_PORT0_PWB_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NV_MCP_SATA_CFG_20_PORT0_PWB_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _NV_MCP_SATA_CFG_20_PORT1_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NV_MCP_SATA_CFG_20_PORT1_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _NV_MCP_SATA_CFG_20_PORT1_PWB_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NV_MCP_SATA_CFG_20_PORT1_PWB_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_pci_write_config_dword
	mov	x0, x19
	bl	_nv_ck804_host_stop
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MCP_SATA_CFG_20,4,2         ; @NV_MCP_SATA_CFG_20
	.comm	_NV_MCP_SATA_CFG_20_PORT0_EN,4,2 ; @NV_MCP_SATA_CFG_20_PORT0_EN
	.comm	_NV_MCP_SATA_CFG_20_PORT0_PWB_EN,4,2 ; @NV_MCP_SATA_CFG_20_PORT0_PWB_EN
	.comm	_NV_MCP_SATA_CFG_20_PORT1_EN,4,2 ; @NV_MCP_SATA_CFG_20_PORT1_EN
	.comm	_NV_MCP_SATA_CFG_20_PORT1_PWB_EN,4,2 ; @NV_MCP_SATA_CFG_20_PORT1_PWB_EN
	.no_dead_strip	_nv_adma_host_stop
.subsections_via_symbols
