	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_show_pcrs                  ## -- Begin function tpm_show_pcrs
	.p2align	4, 0x90
_tpm_show_pcrs:                         ## @tpm_show_pcrs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TPM_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	_TPM_CAP_PROP_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_tpm_getcap
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	leaq	L_.str.2(%rip), %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movw	$10, (%r13)
	incq	%r13
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	%r13, %r15
	cmpl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	___tpm_pcr_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movslq	%eax, %r13
	addq	%r15, %r13
	movq	_TPM_DIGEST_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rbx,4), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	addq	%rax, %r13
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %r13
LBB0_9:
	subl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TPM_DIGEST_SIZE,4,2            ## @TPM_DIGEST_SIZE
	.comm	_TPM_CAP_PROP_PCR,4,2           ## @TPM_CAP_PROP_PCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting to determine the number of PCRS"

L_.str.1:                               ## @.str.1
	.asciz	"PCR-%02d: "

L_.str.2:                               ## @.str.2
	.asciz	"%02X "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_show_pcrs                  ; -- Begin function tpm_show_pcrs
	.p2align	2
_tpm_show_pcrs:                         ; @tpm_show_pcrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x23, x2
	mov	x22, x0
	mov	x19, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _TPM_DIGEST_SIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _TPM_DIGEST_SIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh7:
	adrp	x8, _TPM_CAP_PROP_PCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TPM_CAP_PROP_PCR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	sub	x2, x29, #96
	mov	x0, x22
	bl	_tpm_getcap
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	stur	x19, [x29, #-112]               ; 8-byte Folded Spill
	ldur	w0, [x29, #-96]
	bl	_be32_to_cpu
	stur	x23, [x29, #-104]               ; 8-byte Folded Spill
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x22, x0
	mov	w24, #0
Lloh12:
	adrp	x25, l_.str.1@PAGE
Lloh13:
	add	x25, x25, l_.str.1@PAGEOFF
	mov	w27, #10
	ldur	x23, [x29, #-104]               ; 8-byte Folded Reload
Lloh14:
	adrp	x26, l_.str.2@PAGE
Lloh15:
	add	x26, x26, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	strh	w27, [x23], #1
	add	w24, w24, #1
	cmp	w24, w22
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	___tpm_pcr_read
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x24, [sp, #-16]!
	mov	x0, x23
	mov	x1, x25
	bl	_sprintf
	add	sp, sp, #16
	add	x23, x23, w0, sxtw
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, #0
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20, x19, lsl #2]
	str	x8, [sp, #-16]!
	mov	x0, x23
	mov	x1, x26
	bl	_sprintf
	add	sp, sp, #16
	add	x23, x23, w0, sxtw
	add	x19, x19, #1
	ldrsw	x8, [x28]
	cmp	x19, x8
	b.lt	LBB0_8
	b	LBB0_4
LBB0_9:
	ldp	x19, x8, [x29, #-112]           ; 16-byte Folded Reload
	sub	w0, w23, w8
LBB0_10:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TPM_DIGEST_SIZE,4,2            ; @TPM_DIGEST_SIZE
	.comm	_TPM_CAP_PROP_PCR,4,2           ; @TPM_CAP_PROP_PCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting to determine the number of PCRS"

l_.str.1:                               ; @.str.1
	.asciz	"PCR-%02d: "

l_.str.2:                               ; @.str.2
	.asciz	"%02X "

.subsections_via_symbols
