	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_calculate_power_efficiency_ratio
_si_calculate_power_efficiency_ratio:   ## @si_calculate_power_efficiency_ratio
	.cfi_startproc
## %bb.0:
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN@GOTPCREL(%rip), %rax
	imulq	%rdx, %rdx
	movl	$1000, %ecx                     ## imm = 0x3E8
	movq	(%rax), %rdi
	addq	%rcx, %rdi
	imulq	%rdx, %rdi
	shlq	$10, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div64_u64
	imulq	%rbx, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_div64_u64
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$65536, %rcx                    ## imm = 0x10000
	cmovlq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_3:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN,8,3 ## @SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN
	.no_dead_strip	_si_calculate_power_efficiency_ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_calculate_power_efficiency_ratio
_si_calculate_power_efficiency_ratio:   ; @si_calculate_power_efficiency_ratio
	.cfi_startproc
; %bb.0:
	mov	x0, #0
	cbz	x1, LBB0_3
; %bb.1:
	cbz	x2, LBB0_3
; %bb.2:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mul	x9, x2, x2
	add	x8, x8, #1000
	mul	x8, x9, x8
	lsl	x0, x8, #10
	mov	w1, #1000
	bl	_div64_u64
	mul	x1, x19, x19
	bl	_div64_u64
	cmp	x0, #16, lsl #12                ; =65536
	csel	x0, xzr, x0, ge
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN,8,3 ; @SISLANDS_DPM2_PWREFFICIENCYRATIO_MARGIN
	.no_dead_strip	_si_calculate_power_efficiency_ratio
.subsections_via_symbols
