	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_show_caps_1_2              ## -- Begin function tpm_show_caps_1_2
	.p2align	4, 0x90
_tpm_show_caps_1_2:                     ## @tpm_show_caps_1_2
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_TPM_CAP_PROP_MANUFACTURER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	-56(%rbp), %rdx
	callq	_tpm_getcap
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	-40(%rbp), %edi
	callq	_be32_to_cpu
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movl	%eax, %r12d
	movq	_CAP_VERSION_1_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tpm_getcap
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movslq	%r12d, %rbx
	addq	%r14, %rbx
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %r9d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %ebx
	subl	%r14d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPM_CAP_PROP_MANUFACTURER,4,2  ## @TPM_CAP_PROP_MANUFACTURER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting to determine the manufacturer"

L_.str.1:                               ## @.str.1
	.asciz	"Manufacturer: 0x%x\n"

	.comm	_CAP_VERSION_1_2,4,2            ## @CAP_VERSION_1_2
L_.str.2:                               ## @.str.2
	.asciz	"attempting to determine the 1.2 version"

L_.str.3:                               ## @.str.3
	.asciz	"TCG version: %d.%d\nFirmware version: %d.%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_show_caps_1_2              ; -- Begin function tpm_show_caps_1_2
	.p2align	2
_tpm_show_caps_1_2:                     ; @tpm_show_caps_1_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _TPM_CAP_PROP_MANUFACTURER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPM_CAP_PROP_MANUFACTURER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_tpm_getcap
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #40]
	bl	_be32_to_cpu
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x21, x0
Lloh7:
	adrp	x8, _CAP_VERSION_1_2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAP_VERSION_1_2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_tpm_getcap
	cbz	w0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	add	x20, x19, w21, sxtw
	ldp	w2, w8, [sp, #24]
	ldp	w9, w10, [sp, #32]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	w8, w20, w0
	sub	w0, w8, w19
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TPM_CAP_PROP_MANUFACTURER,4,2  ; @TPM_CAP_PROP_MANUFACTURER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting to determine the manufacturer"

l_.str.1:                               ; @.str.1
	.asciz	"Manufacturer: 0x%x\n"

	.comm	_CAP_VERSION_1_2,4,2            ; @CAP_VERSION_1_2
l_.str.2:                               ; @.str.2
	.asciz	"attempting to determine the 1.2 version"

l_.str.3:                               ; @.str.3
	.asciz	"TCG version: %d.%d\nFirmware version: %d.%d\n"

.subsections_via_symbols
