	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_adma_host_init
_nv_adma_host_init:                     ## @nv_adma_host_init
	.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, %r15
	movl	16(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_VPRINTK
	movq	_NV_MCP_SATA_CFG_20@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %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
	orl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_pci_write_config_dword
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_nv_adma_setup_port
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.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_init
.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_init
_nv_adma_host_init:                     ; @nv_adma_host_init
	.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, #16]
	bl	_to_pci_dev
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
Lloh2:
	adrp	x21, _NV_MCP_SATA_CFG_20@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NV_MCP_SATA_CFG_20@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_dword
Lloh4:
	adrp	x8, _NV_MCP_SATA_CFG_20_PORT0_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NV_MCP_SATA_CFG_20_PORT0_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _NV_MCP_SATA_CFG_20_PORT0_PWB_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NV_MCP_SATA_CFG_20_PORT0_PWB_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _NV_MCP_SATA_CFG_20_PORT1_EN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NV_MCP_SATA_CFG_20_PORT1_EN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _NV_MCP_SATA_CFG_20_PORT1_PWB_EN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NV_MCP_SATA_CFG_20_PORT1_PWB_EN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_pci_write_config_dword
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_nv_adma_setup_port
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	mov	w0, #0
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.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_init
.subsections_via_symbols
