	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___tpm_pcr_read                 ## -- Begin function __tpm_pcr_read
	.p2align	4, 0x90
___tpm_pcr_read:                        ## @__tpm_pcr_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_pcrread_header@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	%esi, %edi
	callq	_cpu_to_be32
	movl	%eax, -28(%rbp)
	movq	_READ_PCR_RESULT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_transmit_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-32(%rbp), %esi
	movq	_TPM_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcrread_header,4,2             ## @pcrread_header
	.comm	_READ_PCR_RESULT_SIZE,4,2       ## @READ_PCR_RESULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting to read a pcr value"

	.comm	_TPM_DIGEST_SIZE,4,2            ## @TPM_DIGEST_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___tpm_pcr_read                 ; -- Begin function __tpm_pcr_read
	.p2align	2
___tpm_pcr_read:                        ; @__tpm_pcr_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _pcrread_header@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pcrread_header@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x1
	bl	_cpu_to_be32
	str	w0, [sp, #4]
Lloh3:
	adrp	x8, _READ_PCR_RESULT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _READ_PCR_RESULT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, sp
	mov	x0, x20
	bl	_transmit_cmd
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp]
Lloh8:
	adrp	x8, _TPM_DIGEST_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TPM_DIGEST_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_memcpy
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pcrread_header,4,2             ; @pcrread_header
	.comm	_READ_PCR_RESULT_SIZE,4,2       ; @READ_PCR_RESULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting to read a pcr value"

	.comm	_TPM_DIGEST_SIZE,4,2            ; @TPM_DIGEST_SIZE
.subsections_via_symbols
