	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_calculate_adjusted_tdp_limits
_ni_calculate_adjusted_tdp_limits:      ## @ni_calculate_adjusted_tdp_limits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%edx, 8(%rdi)
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %eax
	negl	%eax
	testl	%esi, %esi
	cmovnel	%edx, %eax
	addl	$100, %eax
	imull	(%rdi), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movl	%eax, (%rcx)
	addl	4(%rdi), %eax
	subl	(%rdi), %eax
	movl	%eax, (%r8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ni_calculate_adjusted_tdp_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni_calculate_adjusted_tdp_limits
_ni_calculate_adjusted_tdp_limits:      ; @ni_calculate_adjusted_tdp_limits
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0, #8]
	cmp	w9, w2
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	cmp	w1, #0
	cneg	w9, w2, eq
	add	w9, w9, #100
	ldr	w10, [x8]
	mul	w9, w10, w9
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	str	w9, [x3]
	ldp	w8, w10, [x8]
	add	w9, w10, w9
	sub	w8, w9, w8
	str	w8, [x4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ni_calculate_adjusted_tdp_limits
.subsections_via_symbols
