	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vc_load_port_arb_table
_pci_vc_load_port_arb_table:            ## @pci_vc_load_port_arb_table
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_PCI_VC_RES_CTRL@GOTPCREL(%rip), %rax
	movq	_PCI_CAP_VC_PER_VC_SIZEOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%edx, %ecx
	addl	%ecx, %ebx
	movl	(%rax), %r12d
	addl	%ebx, %r12d
	movq	_PCI_VC_RES_STATUS@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	leaq	-36(%rbp), %rdx
	movl	%r12d, %esi
	callq	_pci_read_config_dword
	movq	_PCI_VC_RES_CTRL_LOAD_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-36(%rbp), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_pci_write_config_dword
	movq	_PCI_VC_RES_STATUS_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_wait_for_pending
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_pci_err
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VC_RES_CTRL,4,2            ## @PCI_VC_RES_CTRL
	.comm	_PCI_CAP_VC_PER_VC_SIZEOF,4,2   ## @PCI_CAP_VC_PER_VC_SIZEOF
	.comm	_PCI_VC_RES_STATUS,4,2          ## @PCI_VC_RES_STATUS
	.comm	_PCI_VC_RES_CTRL_LOAD_TABLE,4,2 ## @PCI_VC_RES_CTRL_LOAD_TABLE
	.comm	_PCI_VC_RES_STATUS_TABLE,4,2    ## @PCI_VC_RES_STATUS_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VC%d port arbitration table failed to load\n"

	.no_dead_strip	_pci_vc_load_port_arb_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vc_load_port_arb_table
_pci_vc_load_port_arb_table:            ; @pci_vc_load_port_arb_table
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_VC_RES_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VC_RES_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PCI_CAP_VC_PER_VC_SIZEOF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_CAP_VC_PER_VC_SIZEOF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	madd	w9, w9, w2, w1
	add	w21, w9, w8
Lloh6:
	adrp	x8, _PCI_VC_RES_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_VC_RES_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w22, w9, w8
	add	x2, sp, #12
	mov	x1, x21
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _PCI_VC_RES_CTRL_LOAD_TABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_VC_RES_CTRL_LOAD_TABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_pci_write_config_dword
Lloh12:
	adrp	x8, _PCI_VC_RES_STATUS_TABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_VC_RES_STATUS_TABLE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_pci_wait_for_pending
	cbnz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_pci_err
LBB0_2:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VC_RES_CTRL,4,2            ; @PCI_VC_RES_CTRL
	.comm	_PCI_CAP_VC_PER_VC_SIZEOF,4,2   ; @PCI_CAP_VC_PER_VC_SIZEOF
	.comm	_PCI_VC_RES_STATUS,4,2          ; @PCI_VC_RES_STATUS
	.comm	_PCI_VC_RES_CTRL_LOAD_TABLE,4,2 ; @PCI_VC_RES_CTRL_LOAD_TABLE
	.comm	_PCI_VC_RES_STATUS_TABLE,4,2    ; @PCI_VC_RES_STATUS_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VC%d port arbitration table failed to load\n"

	.no_dead_strip	_pci_vc_load_port_arb_table
.subsections_via_symbols
