	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvbios_addr
_nvbios_addr:                           ## @nvbios_addr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rsi), %r15
	movq	%r15, %rax
	movq	%r15, %rcx
	subq	(%rdi), %rax
	jle	LBB0_3
## %bb.1:
	cmpq	$0, 24(%rbx)
	movq	%r15, %rcx
	je	LBB0_3
## %bb.2:
	movq	%rax, (%r12)
	addq	24(%rbx), %rax
	movq	%rax, (%r12)
	movq	%rax, %rcx
LBB0_3:
	addq	%r14, %rcx
	xorl	%edi, %edi
	cmpq	8(%rbx), %rcx
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	addq	$16, %rbx
	movq	(%r12), %r8
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_nvkm_error
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OOB %d %08x %08x\n"

	.no_dead_strip	_nvbios_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvbios_addr
_nvbios_addr:                           ; @nvbios_addr
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x1]
	ldr	x9, [x0]
	mov	x8, x20
	subs	x9, x20, x9
	b.le	LBB0_3
; %bb.1:
	ldr	x10, [x22, #24]
	mov	x8, x20
	cbz	x10, LBB0_3
; %bb.2:
	str	x9, [x21]
	ldr	x8, [x22, #24]
	add	x8, x8, x9
	str	x8, [x21]
LBB0_3:
	ldr	x9, [x22, #8]
	add	x8, x8, x19
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, x22, #16
	ldr	x4, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_nvkm_error
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OOB %d %08x %08x\n"

	.no_dead_strip	_nvbios_addr
.subsections_via_symbols
