	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm107_gr_init_bios_2
_gm107_gr_init_bios_2:                  ## @gm107_gr_init_bios_2
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	(%r15), %rbx
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_bit_entry
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	cmpl	$2, -56(%rbp)
	jne	LBB0_8
## %bb.2:
	cmpl	$44, -52(%rbp)
	jl	LBB0_8
## %bb.3:
	movq	-48(%rbp), %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd32
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_nvbios_rd08
	movl	%eax, %r13d
	leaq	1(%r12), %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd08
	cmpl	$32, %r13d
	jne	LBB0_8
## %bb.5:
	cmpl	$8, %eax
	jl	LBB0_8
## %bb.6:
	addq	$4, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_nvbios_rd32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$6394948, %esi                  ## imm = 0x619444
	callq	_nvkm_rd32
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nvbios_init
	movq	%r15, %rdi
	movl	$6394948, %esi                  ## imm = 0x619444
	movq	%r12, %rdx
	callq	_nvkm_wr32
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gm107_gr_init_bios_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm107_gr_init_bios_2
_gm107_gr_init_bios_2:                  ; @gm107_gr_init_bios_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x21, [x19]
	mov	x2, sp
	mov	x0, x21
	mov	w1, #80
	bl	_bit_entry
	ldr	w8, [sp]
	cmp	w0, #0
	ccmp	w8, #2, #0, eq
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #44
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	add	x1, x8, #40
	mov	x0, x21
	bl	_nvbios_rd32
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_nvbios_rd08
	mov	x23, x0
	add	x1, x22, #1
	mov	x0, x21
	bl	_nvbios_rd08
	cmp	w23, #32
	ccmp	w0, #8, #8, eq
	b.lt	LBB0_6
; %bb.4:
	add	x1, x22, #4
	mov	x0, x21
	bl	_nvbios_rd32
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #37956
	movk	w1, #97, lsl #16
	bl	_nvkm_rd32
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_nvbios_init
	mov	x0, x19
	mov	w1, #37956
	movk	w1, #97, lsl #16
	mov	x2, x22
	bl	_nvkm_wr32
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gm107_gr_init_bios_2
.subsections_via_symbols
