	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_power_budget_entry      ## -- Begin function nvbios_power_budget_entry
	.p2align	4, 0x90
_nvbios_power_budget_entry:             ## @nvbios_power_budget_entry
	.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
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	24(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	cmpl	%edx, (%rsi)
	jle	LBB0_5
## %bb.6:
	movq	%rdi, %rbx
	addq	16(%rsi), %rax
	movslq	4(%rsi), %rcx
	movslq	%edx, %r15
	imulq	%rcx, %r15
	addq	%rax, %r15
	cmpl	$32, 8(%rsi)
	jl	LBB0_8
## %bb.7:
	leaq	2(%r15), %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd32
	movq	%rax, 16(%r14)
	leaq	6(%r15), %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd32
	movq	%rax, 8(%r14)
	addq	$10, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nvbios_rd32
	movq	%rax, (%r14)
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	$0, 16(%r14)
	addq	$2, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nvbios_rd32
	movq	%rax, (%r14)
	movq	%rax, 8(%r14)
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.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_power_budget_entry      ; -- Begin function nvbios_power_budget_entry
	.p2align	2
_nvbios_power_budget_entry:             ; @nvbios_power_budget_entry
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x1, LBB0_7
; %bb.2:
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x19, x3
	cbz	x3, LBB0_7
; %bb.4:
	ldr	w9, [x1]
	cmp	w9, w2
	b.le	LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	x9, [x1, #16]
	add	x8, x9, x8
	sxtw	x9, w2
	ldp	w10, w11, [x1, #4]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	x21, x10, x9, x8
	cmp	w11, #32
	b.lt	LBB0_9
; %bb.6:
	add	x1, x21, #2
	mov	x0, x20
	bl	_nvbios_rd32
	str	x0, [x19, #16]
	add	x1, x21, #6
	mov	x0, x20
	bl	_nvbios_rd32
	str	x0, [x19, #8]
	add	x1, x21, #10
	mov	x0, x20
	bl	_nvbios_rd32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	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
LBB0_9:
	str	xzr, [x19, #16]
	add	x1, x21, #2
	mov	x0, x20
	bl	_nvbios_rd32
	mov	x8, x0
	mov	w0, #0
	stp	x8, x8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
