	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_exec                    ## -- Begin function nvbios_exec
	.p2align	4, 0x90
_nvbios_exec:                           ## @nvbios_exec
	.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), %eax
	incl	%eax
	movl	%eax, (%rdi)
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	_init_opcode_nr@GOTPCREL(%rip), %r14
	movq	_init_opcode@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	callq	_nv_ro08
	cmpq	(%r14), %rax
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	*%rcx
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.6:
	movl	(%rbx), %eax
LBB0_7:
	decl	%eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_opcode_nr,8,3             ## @init_opcode_nr
	.comm	_init_opcode,8,3                ## @init_opcode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown opcode 0x%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_exec                    ; -- Begin function nvbios_exec
	.p2align	2
_nvbios_exec:                           ; @nvbios_exec
	.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	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_6
; %bb.1:
Lloh0:
	adrp	x20, _init_opcode_nr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _init_opcode_nr@GOTPAGEOFF]
Lloh2:
	adrp	x21, _init_opcode@GOTPAGE
Lloh3:
	ldr	x21, [x21, _init_opcode@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	bl	_nv_ro08
	mov	x1, x0
	ldr	x8, [x20]
	cmp	x0, x8
	b.hs	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x1, lsl #3]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	blr	x8
	ldr	x1, [x19, #8]
	cbnz	x1, LBB0_2
; %bb.5:
	ldr	w8, [x19]
LBB0_6:
	mov	w0, #0
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_init_opcode_nr,8,3             ; @init_opcode_nr
	.comm	_init_opcode,8,3                ; @init_opcode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown opcode 0x%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
