	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_M0209Sp                 ## -- Begin function nvbios_M0209Sp
	.p2align	4, 0x90
_nvbios_M0209Sp:                        ## @nvbios_M0209Sp
	.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	%r9, %r14
	movq	%r8, %rbx
	movq	%rcx, %r13
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-64(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%rcx, %rdx
	movq	%rbx, %rcx
	callq	_nvbios_M0209Ep
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_nvbios_M0209Se
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.3:
	cmpl	$16, (%r13)
	jne	LBB0_8
## %bb.4:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	cltd
	idivl	-56(%rbp)
	movl	%edx, %ebx
	movl	-52(%rbp), %ecx
	movq	$-1, %r14
	shlq	%cl, %r14
	imull	%ecx, %ebx
	notl	%r14d
	leal	7(%rbx), %esi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %esi
	sarl	$3, %esi
	addl	%r12d, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvbios_rd32
	andb	$7, %bl
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movq	(%r15), %rdi
	andl	%r14d, %eax
	movl	%eax, (%rdi,%r13,4)
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jl	LBB0_6
LBB0_7:
	movl	%r12d, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %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	_nvbios_M0209Sp                 ; -- Begin function nvbios_M0209Sp
	.p2align	2
_nvbios_M0209Sp:                        ; @nvbios_M0209Sp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	add	x4, sp, #4
	mov	x5, sp
	add	x6, sp, #8
	mov	x2, x3
	mov	x3, x21
	bl	_nvbios_M0209Ep
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_nvbios_M0209Se
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w0, #0
	cbz	w21, LBB0_7
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #16
	b.ne	LBB0_7
; %bb.3:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [sp, #8]
	sdiv	w10, w22, w8
	msub	w8, w10, w8, w22
	mul	w24, w9, w8
	lsl	x25, x23, x9
	add	w8, w24, #7
	cmp	w24, #0
	csel	w8, w8, w24, lt
	add	w1, w21, w8, asr #3
	mov	x0, x20
	bl	_nvbios_rd32
	ldr	x8, [x19]
	and	w9, w24, #0x7
	asr	w9, w0, w9
	bic	w9, w9, w25
	str	w9, [x8, x22, lsl #2]
	add	x22, x22, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x21
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
