	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvbl_getlevel
_nvbl_getlevel:                         ## @nvbl_getlevel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	movq	_NVIDIA_PMC_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bus_read_stream_2
	andl	$32767, %eax                    ## imm = 0x7FFF
	movq	_NVIDIA_BRIGHT_MIN@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %eax
	jl	LBB0_2
## %bb.1:
	movq	_NVIDIA_BRIGHT_SCALE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %ecx
LBB0_2:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIDIA_PMC_OFF,4,2             ## @NVIDIA_PMC_OFF
	.comm	_NVIDIA_BRIGHT_MIN,4,2          ## @NVIDIA_BRIGHT_MIN
	.comm	_NVIDIA_BRIGHT_SCALE,4,2        ## @NVIDIA_BRIGHT_SCALE
	.no_dead_strip	_nvbl_getlevel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvbl_getlevel
_nvbl_getlevel:                         ; @nvbl_getlevel
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _NVIDIA_PMC_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVIDIA_PMC_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bus_read_stream_2
	and	w8, w0, #0x7fff
Lloh3:
	adrp	x9, _NVIDIA_BRIGHT_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVIDIA_BRIGHT_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	subs	w8, w8, w9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x9, _NVIDIA_BRIGHT_SCALE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVIDIA_BRIGHT_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIDIA_PMC_OFF,4,2             ; @NVIDIA_PMC_OFF
	.comm	_NVIDIA_BRIGHT_MIN,4,2          ; @NVIDIA_BRIGHT_MIN
	.comm	_NVIDIA_BRIGHT_SCALE,4,2        ; @NVIDIA_BRIGHT_SCALE
	.no_dead_strip	_nvbl_getlevel
.subsections_via_symbols
