	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getMNP_double
_getMNP_double:                         ## @getMNP_double
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -152(%rbp)                 ## 8-byte Spill
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	callq	_nouveau_bios
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movl	40(%r13), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	44(%r13), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	8(%r13), %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movslq	12(%r13), %rax
	movl	48(%r13), %ecx
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movl	16(%r13), %r12d
	movl	52(%r13), %ecx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movl	20(%r13), %r15d
	movl	56(%r13), %ebx
	imulq	$-1374389535, %rax, %rcx        ## imm = 0xAE147AE1
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	movl	60(%r13), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	64(%r13), %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	68(%r13), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	24(%r13), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	28(%r13), %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	32(%r13), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	36(%r13), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	(%r13), %esi
	movl	4(%r13), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	sarl	%edx
	movl	$-1, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	movl	%edx, %edi
	sarl	%cl, %edi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, %ecx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %edi
	jge	LBB0_1
LBB0_4:
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	xorl	-68(%rbp), %edx                 ## 4-byte Folded Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	-88(%rbp), %esi                 ## 4-byte Folded Reload
	orl	%edx, %esi
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movl	%r14d, %edx
	shll	%cl, %edx
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movslq	%r14d, %rdx
	imulq	$1374389535, %rdx, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$38, %rsi
	addl	%edx, %esi
	addl	%r14d, %esi
	cmpl	%esi, %eax
	cmovgl	%eax, %esi
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jg	LBB0_29
## %bb.5:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r9d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	imull	-80(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rbx), %eax
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%eax, %ebx
	je	LBB0_29
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%ebx
	cmpl	-100(%rbp), %eax                ## 4-byte Folded Reload
	jl	LBB0_29
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	-96(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_28
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	cmpl	%r13d, %eax
	jg	LBB0_28
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r8d
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=2
	leal	1(%r8), %eax
	cmpl	%r13d, %r8d
	movl	%eax, %r8d
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_28
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movl	%r8d, %eax
	imull	-72(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	%ebx
	cmpl	-120(%rbp), %eax                ## 4-byte Folded Reload
	jl	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %esi
	cmpl	-116(%rbp), %eax                ## 4-byte Folded Reload
	jg	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-52(%rbp), %r11d                ## 4-byte Reload
	cmpl	-88(%rbp), %r11d                ## 4-byte Folded Reload
	jg	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	addl	-104(%rbp), %edi                ## 4-byte Folded Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=3
	incl	%r11d
	addl	-80(%rbp), %edi                 ## 4-byte Folded Reload
	cmpl	%r11d, %r9d
	je	LBB0_27
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%esi, %eax
	cltd
	idivl	%r11d
	cmpl	%r12d, %eax
	jl	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=3
	cmpl	%r15d, %eax
	jg	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=3
	movl	%edi, %eax
	cltd
	idivl	%esi
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=3
	movl	%eax, %ebx
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=3
	movl	%esi, %eax
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=3
	cmpl	$95, -112(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=3
	movl	%ebx, %eax
	cltd
	idivl	%r11d
	addl	$-11, %eax
	cmpl	$-7, %eax
	jb	LBB0_26
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=3
	movl	%ebx, %eax
	imull	%esi, %eax
	cltd
	idivl	%r11d
	cmpl	-108(%rbp), %eax                ## 4-byte Folded Reload
	jl	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=3
	cmpl	-160(%rbp), %eax                ## 4-byte Folded Reload
	jg	LBB0_26
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=3
	sarl	%cl, %eax
	movl	%eax, %edx
	subl	%r14d, %edx
	movl	%edx, %r10d
	negl	%r10d
	cmovsl	%edx, %r10d
	cmpl	-64(%rbp), %r10d                ## 4-byte Folded Reload
	jge	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=3
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movl	%r8d, (%rdx)
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movl	%r12d, %r13d
	movl	%r15d, %r12d
	movl	%r14d, %r15d
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, (%rdx)
	movl	%r15d, %r14d
	movl	%r12d, %r15d
	movl	%r13d, %r12d
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	movl	%ebx, (%rdx)
	movq	16(%rbp), %rdx
	movl	%r11d, (%rdx)
	movq	24(%rbp), %rdx
	movl	%ecx, (%rdx)
	movl	%r10d, -64(%rbp)                ## 4-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%r14d, %eax
	jne	LBB0_26
## %bb.25:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
LBB0_29:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_getMNP_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getMNP_double
_getMNP_double:                         ; @getMNP_double
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	x6, x7, [sp, #48]               ; 16-byte Folded Spill
	stp	x4, x5, [sp, #32]               ; 16-byte Folded Spill
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	mov	x23, x2
	mov	x25, x1
	bl	_nouveau_bios
	ldr	w8, [x0]
	ldp	w9, w10, [x25, #40]
	ldp	w11, w12, [x25, #8]
                                        ; kill: def $w12 killed $w12 def $x12
	sxtw	x12, w12
	ldr	w14, [x25, #48]
	ldp	w13, w1, [x25, #52]
	stp	w13, w14, [sp, #16]             ; 8-byte Folded Spill
	ldp	w14, w15, [x25, #16]
	ldp	w0, w13, [x25, #60]
	str	w13, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w2, [x25, #68]
	ldp	w20, w4, [x25, #24]
	ldp	w5, w6, [x25, #32]
Lloh0:
	adrp	x16, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x16, [x16, _INT_MAX@GOTPAGEOFF]
	ldp	w13, w7, [x25]
Lloh2:
	ldr	w24, [x16]
	mov	x16, #-34079
	movk	x16, #44564, lsl #16
	mul	x16, x12, x16
	lsr	x17, x16, #63
	asr	x16, x16, #38
	add	w16, w16, w17
	add	w16, w16, w12
	cmp	w16, #0
	cinc	w16, w16, lt
	asr	w16, w16, #1
	mov	w26, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w26, w26, #1
	cbz	w23, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w26, w13
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	asr	w17, w16, w26
	cmp	w17, w23
	b.ge	LBB0_1
LBB0_4:
	cmp	w20, w4
	ccmp	w5, w6, #0, eq
	cset	w27, eq
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x13, w23, w13
	lsr	x16, x13, #63
	asr	x13, x13, #38
	add	w13, w13, w16
	add	w13, w13, w23
	cmp	w12, w13
	csel	w28, w12, w13, gt
	cmp	w1, w0
	b.le	LBB0_6
; %bb.5:
	mov	w22, #0
	b	LBB0_29
LBB0_6:
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	w22, #0
	lsl	w30, w23, w26
	add	w13, w4, #1
	mul	w12, w20, w30
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w16, w1, #1
	ldr	w17, [sp, #8]                   ; 4-byte Folded Reload
	cmp	w1, w17
	mov	x1, x16
	b.eq	LBB0_29
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	sdiv	w16, w7, w1
	ldr	w17, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w16, w17
	b.lt	LBB0_29
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w17, [sp, #16]                  ; 4-byte Folded Reload
	cmp	w16, w17
	ldr	w17, [sp, #12]                  ; 4-byte Folded Reload
	ccmp	w17, w2, #0, le
	b.le	LBB0_11
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w16, w17, #1
	cmp	w17, w2
	mov	x17, x16
	b.eq	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	mul	w16, w17, w7
	sdiv	w16, w16, w1
	cmp	w16, w9
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w16, w10
	b.gt	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w20, w4
	b.gt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w16, #0
	cinc	w0, w16, lt
	add	w19, w12, w0, asr #1
	mov	x3, x20
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	add	w3, w3, #1
	add	w19, w19, w30
	cmp	w13, w3
	b.eq	LBB0_10
LBB0_16:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sdiv	w0, w16, w3
	cmp	w0, w14
	b.lt	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	cmp	w0, w15
	b.gt	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=3
	sdiv	w21, w19, w16
	cmp	w21, w5
	b.lt	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=3
	cmp	w21, w6
	b.gt	LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=3
	mov	x0, x16
	tbnz	w27, #0, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=3
	cmp	w8, #95
	b.gt	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=3
	sdiv	w0, w21, w3
	sub	w0, w0, #11
	cmn	w0, #7
	b.lo	LBB0_15
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=3
	mul	w0, w21, w16
	sdiv	w0, w0, w3
	cmp	w0, w11
	b.lt	LBB0_10
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=3
	cmp	w0, w28
	b.gt	LBB0_15
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=3
	asr	w0, w0, w26
	subs	w25, w0, w23
	cneg	w25, w25, mi
	cmp	w25, w24
	b.ge	LBB0_15
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=3
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	str	w17, [x22]
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	str	w1, [x22]
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	str	w21, [x22]
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	str	w3, [x21]
	ldr	x21, [sp, #56]                  ; 8-byte Folded Reload
	str	w26, [x21]
	cmp	w0, w23
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=3
	mov	x24, x25
	mov	x22, x0
	b	LBB0_15
LBB0_28:
	mov	x22, x23
LBB0_29:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_getMNP_double
.subsections_via_symbols
