	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_bios_score
_nouveau_bios_score:                    ## @nouveau_bios_score
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	cmpl	$3, %edx
	jl	LBB0_4
## %bb.1:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	cmpl	$85, (%r15)
	jne	LBB0_4
## %bb.3:
	cmpl	$170, 4(%r15)
	jne	LBB0_4
## %bb.5:
	movl	%esi, %r14d
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	shll	$9, %esi
	callq	_min_t
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nvbios_checksum
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_info
	cmpl	$1, %r14d
	movl	$2, %eax
	sbbl	$0, %eax
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_info
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_info
	movl	$3, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"... signature not found\n"

	.comm	_u32,4,2                        ## @u32
L_.str.1:                               ## @.str.1
	.asciz	"... checksum invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"... appears to be valid\n"

	.no_dead_strip	_nouveau_bios_score
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_bios_score
_nouveau_bios_score:                    ; @nouveau_bios_score
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w2, [x0]
	cmp	w2, #3
	b.lt	LBB0_6
; %bb.1:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_6
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #85
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x21, #4]
	cmp	w8, #170
	b.ne	LBB0_6
; %bb.4:
	mov	x20, x1
Lloh0:
	adrp	x8, _u32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x21, #8]
	lsl	w1, w8, #9
	bl	_min_t
	mov	x1, x0
	mov	x0, x21
	bl	_nvbios_checksum
	cbz	x0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_info
	cmp	w20, #0
	mov	w8, #1
	cinc	w0, w8, ne
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_info
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_info
	mov	w0, #3
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"... signature not found\n"

	.comm	_u32,4,2                        ; @u32
l_.str.1:                               ; @.str.1
	.asciz	"... checksum invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"... appears to be valid\n"

	.no_dead_strip	_nouveau_bios_score
.subsections_via_symbols
