	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_vram_location
_si_vram_location:                      ## @si_vram_location
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ecx
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%edx, (%rsi)
	movslq	4(%rsi), %rdx
	movslq	%ecx, %rax
	movabsq	$1099511627776, %rsi            ## imm = 0x10000000000
	subq	%rax, %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movl	(%rbx), %ecx
	movl	12(%rbx), %r9d
	movl	%r9d, 8(%rbx)
	movl	%r9d, 4(%rbx)
	movl	%r9d, %edx
	jmp	LBB0_3
LBB0_1:
	movl	8(%rbx), %r9d
LBB0_3:
	leal	(%rcx,%rdx), %r8d
	decl	%r8d
	movl	%r8d, 16(%rbx)
	movl	(%r14), %edi
	sarl	$20, %edx
	sarl	$20, %r9d
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"limiting VRAM to PCI aperture size\n"

L_.str.1:                               ## @.str.1
	.asciz	"VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n"

	.no_dead_strip	_si_vram_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_vram_location
_si_vram_location:                      ; @si_vram_location
	.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	x20, x1
	mov	x19, x0
	str	w2, [x1]
	ldrsw	x8, [x1, #4]
	mov	x9, #1099511627776
	sub	x9, x9, w2, sxtw
	cmp	x9, x8
	b.hs	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w9, [x20, #12]
	stp	w9, w9, [x20, #4]
	ldr	w3, [x20]
	mov	x8, x9
	b	LBB0_3
LBB0_2:
	mov	x3, x2
	ldr	w9, [x20, #8]
LBB0_3:
	add	w10, w3, w8
	sub	w4, w10, #1
	str	w4, [x20, #16]
	ldr	w0, [x19]
	asr	w2, w8, #20
	asr	w5, w9, #20
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_info
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"limiting VRAM to PCI aperture size\n"

l_.str.1:                               ; @.str.1
	.asciz	"VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n"

	.no_dead_strip	_si_vram_location
.subsections_via_symbols
