	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm200_ram_probe_fbp_amount     ## -- Begin function gm200_ram_probe_fbp_amount
	.p2align	4, 0x90
_gm200_ram_probe_fbp_amount:            ## @gm200_ram_probe_fbp_amount
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	movl	$140368, %esi                   ## imm = 0x22450
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$140376, %esi                   ## imm = 0x22458
	callq	_nvkm_rd32
	movl	%eax, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$138552, %esi                   ## imm = 0x21D38
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BIT
	xorl	%r13d, %r13d
	testl	%r15d, %eax
	jne	LBB0_8
## %bb.1:
	leal	138608(,%rbx,4), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	$-1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	notl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	imull	%r14d, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	btl	%ebx, %r12d
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	addl	%eax, %r13d
	jmp	LBB0_6
LBB0_2:
	xorl	%r13d, %r13d
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_hweight32
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm200_ram_probe_fbp_amount     ; -- Begin function gm200_ram_probe_fbp_amount
	.p2align	2
_gm200_ram_probe_fbp_amount:            ; @gm200_ram_probe_fbp_amount
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x26, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w27, #7480
	movk	w27, #2, lsl #16
	add	w1, w27, #1816
	mov	x0, x2
	bl	_nvkm_rd32
	mov	x24, x0
	add	w1, w27, #1824
	mov	x0, x20
	bl	_nvkm_rd32
	mov	x23, x0
	mov	x0, x20
	mov	w1, #7480
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	mov	x25, x0
	mov	x0, x26
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_8
LBB0_2:
	add	w8, w27, w26, lsl #2
	add	w1, w8, #56
	mov	x0, x20
	bl	_nvkm_rd32
	mov	w8, #-1
	lsl	w8, w8, w24
	orr	w8, w0, w8
	mvn	w25, w8
	mov	w24, #0
	cbz	w23, LBB0_7
; %bb.3:
	mul	w26, w23, w26
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
	cbz	w23, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	lsr	w8, w21, w26
	tbnz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	mov	x0, x20
	mov	x1, x26
	blr	x8
	add	w24, w24, w0
	b	LBB0_4
LBB0_7:
	mov	x0, x25
	bl	_hweight32
	str	w0, [x19]
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
