	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_calc_ordinal_duration      ## -- Begin function tpm_calc_ordinal_duration
	.p2align	4, 0x90
_tpm_calc_ordinal_duration:             ## @tpm_calc_ordinal_duration
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TPM_MAX_ORDINAL@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	_tpm_ordinal_duration@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_TPM_PROTECTED_ORDINAL_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rsi
	movq	_TPM_MAX_PROTECTED_ORDINAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jae	LBB0_3
## %bb.4:
	movq	_tpm_protected_ordinal_duration@GOTPCREL(%rip), %rax
LBB0_5:
	shlq	$2, %rsi
	addq	(%rax), %rsi
	jmp	LBB0_6
LBB0_3:
	movq	_TPM_UNDEFINED@GOTPCREL(%rip), %rsi
LBB0_6:
	movslq	(%rsi), %rax
	movq	_TPM_UNDEFINED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	(%rdi), %rcx
	movl	(%rcx,%rax,4), %eax
	testl	%eax, %eax
	jg	LBB0_9
LBB0_8:
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	$120, (%rax), %eax
LBB0_9:
	cltq
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPM_UNDEFINED,4,2              ## @TPM_UNDEFINED
	.comm	_TPM_MAX_ORDINAL,8,3            ## @TPM_MAX_ORDINAL
	.comm	_tpm_ordinal_duration,8,3       ## @tpm_ordinal_duration
	.comm	_TPM_PROTECTED_ORDINAL_MASK,8,3 ## @TPM_PROTECTED_ORDINAL_MASK
	.comm	_TPM_MAX_PROTECTED_ORDINAL,8,3  ## @TPM_MAX_PROTECTED_ORDINAL
	.comm	_tpm_protected_ordinal_duration,8,3 ## @tpm_protected_ordinal_duration
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_calc_ordinal_duration      ; -- Begin function tpm_calc_ordinal_duration
	.p2align	2
_tpm_calc_ordinal_duration:             ; @tpm_calc_ordinal_duration
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TPM_MAX_ORDINAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPM_MAX_ORDINAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _TPM_UNDEFINED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPM_UNDEFINED@GOTPAGEOFF]
	cmp	x9, x1
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _tpm_ordinal_duration@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tpm_ordinal_duration@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x9, x9, x1, lsl #2
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x9, _TPM_PROTECTED_ORDINAL_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TPM_PROTECTED_ORDINAL_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	and	x9, x9, x1
Lloh11:
	adrp	x10, _TPM_MAX_PROTECTED_ORDINAL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TPM_MAX_PROTECTED_ORDINAL@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_4
; %bb.3:
Lloh14:
	adrp	x10, _tpm_protected_ordinal_duration@GOTPAGE
Lloh15:
	ldr	x10, [x10, _tpm_protected_ordinal_duration@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x9, x10, x9, lsl #2
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x9, _TPM_UNDEFINED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TPM_UNDEFINED@GOTPAGEOFF]
LBB0_5:
	ldrsw	x9, [x9]
	ldr	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x0]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #0
	b.le	LBB0_8
; %bb.7:
	sxtw	x0, w8
	ret
LBB0_8:
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	w9, #120
	mul	w8, w8, w9
	sxtw	x0, w8
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TPM_UNDEFINED,4,2              ; @TPM_UNDEFINED
	.comm	_TPM_MAX_ORDINAL,8,3            ; @TPM_MAX_ORDINAL
	.comm	_tpm_ordinal_duration,8,3       ; @tpm_ordinal_duration
	.comm	_TPM_PROTECTED_ORDINAL_MASK,8,3 ; @TPM_PROTECTED_ORDINAL_MASK
	.comm	_TPM_MAX_PROTECTED_ORDINAL,8,3  ; @TPM_MAX_PROTECTED_ORDINAL
	.comm	_tpm_protected_ordinal_duration,8,3 ; @tpm_protected_ordinal_duration
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
