	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecap_vc
_ecap_vc:                               ## @ecap_vc
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_printf
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.1:
	movq	_PCIR_VC_CAP1@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %ebx
	movq	_PCIM_VC_CAP1_EXT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%ebx, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_PCIM_VC_CAP1_LOWPRI_EXT_COUNT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_3
## %bb.2:
	sarl	$4, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_3:
	movl	$10, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putchar                        ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VC %d"

	.comm	_PCIR_VC_CAP1,8,3               ## @PCIR_VC_CAP1
L_.str.1:                               ## @.str.1
	.asciz	" max VC%d"

	.comm	_PCIM_VC_CAP1_EXT_COUNT,4,2     ## @PCIM_VC_CAP1_EXT_COUNT
	.comm	_PCIM_VC_CAP1_LOWPRI_EXT_COUNT,4,2 ## @PCIM_VC_CAP1_LOWPRI_EXT_COUNT
L_.str.2:                               ## @.str.2
	.asciz	" lowpri VC0-VC%d"

	.no_dead_strip	_ecap_vc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecap_vc
_ecap_vc:                               ; @ecap_vc
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _PCIR_VC_CAP1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCIR_VC_CAP1@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x19, x0
Lloh5:
	adrp	x8, _PCIM_VC_CAP1_EXT_COUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIM_VC_CAP1_EXT_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x8, _PCIM_VC_CAP1_LOWPRI_EXT_COUNT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCIM_VC_CAP1_LOWPRI_EXT_COUNT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ands	w8, w8, w19
	b.eq	LBB0_3
; %bb.2:
	asr	w8, w8, #4
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_3:
	mov	w0, #10
	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
	b	_putchar
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VC %d"

	.comm	_PCIR_VC_CAP1,8,3               ; @PCIR_VC_CAP1
l_.str.1:                               ; @.str.1
	.asciz	" max VC%d"

	.comm	_PCIM_VC_CAP1_EXT_COUNT,4,2     ; @PCIM_VC_CAP1_EXT_COUNT
	.comm	_PCIM_VC_CAP1_LOWPRI_EXT_COUNT,4,2 ; @PCIM_VC_CAP1_LOWPRI_EXT_COUNT
l_.str.2:                               ; @.str.2
	.asciz	" lowpri VC0-VC%d"

	.no_dead_strip	_ecap_vc
.subsections_via_symbols
