	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_get_timeouts               ## -- Begin function tpm_get_timeouts
	.p2align	4, 0x90
_tpm_get_timeouts:                      ## @tpm_get_timeouts
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_tpm_getcap_header@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -40(%rbp)
	movq	_TPM_CAP_PROP@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	movl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	movq	_TPM_CAP_PROP_TIS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_TPM_INTERNAL_RESULT_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_transmit_cmd
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	cmpl	$16, %eax
	jne	LBB0_10
## %bb.2:
	movl	-80(%rbp), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	%rax, 32(%rbx)
LBB0_4:
	movl	-84(%rbp), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	%rax, 24(%rbx)
LBB0_6:
	movl	-88(%rbp), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	%rax, 16(%rbx)
LBB0_8:
	movl	-92(%rbp), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	%rax, 8(%rbx)
LBB0_10:
	movq	(%r14), %rax
	movq	%rax, -40(%rbp)
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	movl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	movq	_TPM_CAP_PROP_TIS_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_transmit_cmd
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	cmpl	$12, %eax
	jne	LBB0_13
## %bb.12:
	movl	-96(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	(%rbx), %r8
	movq	_TPM_SHORT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%r8,%rdx,4)
	movq	_HZ@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	imulq	$1374389535, %rsi, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$37, %rdi
	addl	%ecx, %edi
	cmpl	%eax, %edi
	cmovlel	%eax, %esi
	movl	%esi, (%r8,%rdx,4)
	movl	-100(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	(%rbx), %rcx
	movq	_TPM_MEDIUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-104(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_usecs_to_jiffies
	movq	(%rbx), %rcx
	movq	_TPM_LONG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_13:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tpm_getcap_header,8,3          ## @tpm_getcap_header
	.comm	_TPM_CAP_PROP,8,3               ## @TPM_CAP_PROP
	.comm	_TPM_CAP_PROP_TIS_TIMEOUT,4,2   ## @TPM_CAP_PROP_TIS_TIMEOUT
	.comm	_TPM_INTERNAL_RESULT_SIZE,4,2   ## @TPM_INTERNAL_RESULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting to determine the timeouts"

	.comm	_TPM_CAP_PROP_TIS_DURATION,4,2  ## @TPM_CAP_PROP_TIS_DURATION
L_.str.1:                               ## @.str.1
	.asciz	"attempting to determine the durations"

	.comm	_TPM_SHORT,8,3                  ## @TPM_SHORT
	.comm	_HZ,4,2                         ## @HZ
	.comm	_TPM_MEDIUM,8,3                 ## @TPM_MEDIUM
	.comm	_TPM_LONG,8,3                   ## @TPM_LONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_get_timeouts               ; -- Begin function tpm_get_timeouts
	.p2align	2
_tpm_get_timeouts:                      ; @tpm_get_timeouts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _tpm_getcap_header@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tpm_getcap_header@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _TPM_CAP_PROP@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TPM_CAP_PROP@GOTPAGEOFF]
	ldr	x9, [x21]
	str	x8, [sp, #72]
	str	x9, [sp, #56]
	mov	w0, #4
	bl	_cpu_to_be32
Lloh4:
	adrp	x8, _TPM_CAP_PROP_TIS_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TPM_CAP_PROP_TIS_TIMEOUT@GOTPAGEOFF]
	str	x0, [sp, #48]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh7:
	adrp	x22, _TPM_INTERNAL_RESULT_SIZE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _TPM_INTERNAL_RESULT_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_transmit_cmd
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w0, [sp, #68]
	bl	_be32_to_cpu
	cmp	w0, #16
	b.ne	LBB0_10
; %bb.2:
	ldr	w0, [sp, #32]
	bl	_be32_to_cpu
	cbz	w0, LBB0_4
; %bb.3:
	bl	_usecs_to_jiffies
	str	x0, [x19, #32]
LBB0_4:
	ldr	w0, [sp, #28]
	bl	_be32_to_cpu
	cbz	w0, LBB0_6
; %bb.5:
	bl	_usecs_to_jiffies
	str	x0, [x19, #24]
LBB0_6:
	ldr	w0, [sp, #24]
	bl	_be32_to_cpu
	cbz	w0, LBB0_8
; %bb.7:
	bl	_usecs_to_jiffies
	str	x0, [x19, #16]
LBB0_8:
	ldr	w0, [sp, #20]
	bl	_be32_to_cpu
	cbz	w0, LBB0_10
; %bb.9:
	bl	_usecs_to_jiffies
	str	x0, [x19, #8]
LBB0_10:
	ldr	x8, [x20]
	ldr	x9, [x21]
	str	x8, [sp, #72]
	str	x9, [sp, #56]
	mov	w0, #4
	bl	_cpu_to_be32
	str	x0, [sp, #48]
Lloh11:
	adrp	x8, _TPM_CAP_PROP_TIS_DURATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TPM_CAP_PROP_TIS_DURATION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	w2, [x22]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_transmit_cmd
	cbnz	x0, LBB0_13
; %bb.11:
	ldr	w0, [sp, #64]
	bl	_be32_to_cpu
	cmp	w0, #12
	b.ne	LBB0_13
; %bb.12:
	ldr	w0, [sp, #16]
	bl	_be32_to_cpu
	bl	_usecs_to_jiffies
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _TPM_SHORT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TPM_SHORT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	str	w0, [x8, x9]
Lloh19:
	adrp	x10, _HZ@GOTPAGE
Lloh20:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh21:
	ldrsw	x10, [x10]
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	mul	x11, x10, x11
	lsr	x12, x11, #63
	asr	x11, x11, #37
	add	w11, w11, w12
	cmp	w11, w0
	csel	w10, w10, w0, gt
	str	w10, [x8, x9]
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	bl	_usecs_to_jiffies
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _TPM_MEDIUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TPM_MEDIUM@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	w0, [x8, x9, lsl #2]
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	bl	_usecs_to_jiffies
	ldr	x8, [x19]
Lloh25:
	adrp	x9, _TPM_LONG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TPM_LONG@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	str	w0, [x8, x9, lsl #2]
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_tpm_getcap_header,8,3          ; @tpm_getcap_header
	.comm	_TPM_CAP_PROP,8,3               ; @TPM_CAP_PROP
	.comm	_TPM_CAP_PROP_TIS_TIMEOUT,4,2   ; @TPM_CAP_PROP_TIS_TIMEOUT
	.comm	_TPM_INTERNAL_RESULT_SIZE,4,2   ; @TPM_INTERNAL_RESULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting to determine the timeouts"

	.comm	_TPM_CAP_PROP_TIS_DURATION,4,2  ; @TPM_CAP_PROP_TIS_DURATION
l_.str.1:                               ; @.str.1
	.asciz	"attempting to determine the durations"

	.comm	_TPM_SHORT,8,3                  ; @TPM_SHORT
	.comm	_HZ,4,2                         ; @HZ
	.comm	_TPM_MEDIUM,8,3                 ; @TPM_MEDIUM
	.comm	_TPM_LONG,8,3                   ; @TPM_LONG
.subsections_via_symbols
