	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NVInitVBIOS
_NVInitVBIOS:                           ## @NVInitVBIOS
	.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, %r14
	callq	_nouveau_drm
	movq	%rax, %rbx
	leaq	48(%rax), %rdi
	callq	_nvxx_bios
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r14, 32(%rbx)
	movups	16(%r15), %xmm0
	movups	%xmm0, 12(%rbx)
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_NVBIOS_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rsi, (%rbx)
	addq	$6, %rsi
	movq	%rbx, %rdi
	callq	_parse_bit_structure
	jmp	LBB0_5
LBB0_2:
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	_NVBIOS_BMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rdx, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_parse_bmp_structure
LBB0_5:
	testl	%eax, %eax
	sete	%al
LBB0_6:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_BIT,4,2                 ## @NVBIOS_BIT
	.comm	_NVBIOS_BMP,4,2                 ## @NVBIOS_BMP
	.no_dead_strip	_NVInitVBIOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NVInitVBIOS
_NVInitVBIOS:                           ; @NVInitVBIOS
	.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	x20, x0
	bl	_nouveau_drm
	mov	x19, x0
	add	x0, x0, #48
	bl	_nvxx_bios
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x0, x19, #40
	bl	_spin_lock_init
	str	x20, [x19, #32]
	ldr	q0, [x21, #16]
	stur	q0, [x19, #12]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _NVBIOS_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVBIOS_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	str	x8, [x19]
	add	x1, x8, #6
	mov	x0, x19
	bl	_parse_bit_structure
	b	LBB0_4
LBB0_2:
	ldr	x2, [x21]
	cbz	x2, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _NVBIOS_BMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVBIOS_BMP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	x2, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_parse_bmp_structure
LBB0_4:
	cmp	w0, #0
	cset	w0, eq
LBB0_5:
	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_6:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_BIT,4,2                 ; @NVBIOS_BIT
	.comm	_NVBIOS_BMP,4,2                 ; @NVBIOS_BMP
	.no_dead_strip	_NVInitVBIOS
.subsections_via_symbols
