	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_show_ppi_request
_tpm_show_ppi_request:                  ## @tpm_show_ppi_request
	.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	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -80(%rbp)
	movl	$4, -112(%rbp)
	movq	_TPM_PPI_FN_GETREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ppi_assign_params
	movq	%rbx, -104(%rbp)
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_ROOT_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ppi_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tpm_device_name@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-68(%rbp), %r9
	callq	_acpi_walk_namespace
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	-68(%rbp), %edi
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	callq	_acpi_evaluate_object_typed
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	-96(%rbp), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.6:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	cmpq	$0, 8(%rax)
	je	LBB0_9
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	callq	_kfree
	jmp	LBB0_13
LBB0_9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_scnprintf
	movl	%eax, %ebx
	movq	-96(%rbp), %rdi
	jmp	LBB0_12
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_TPM_PPI_FN_GETREQ,4,2          ## @TPM_PPI_FN_GETREQ
	.comm	_ACPI_TYPE_DEVICE,4,2           ## @ACPI_TYPE_DEVICE
	.comm	_ACPI_ROOT_OBJECT,4,2           ## @ACPI_ROOT_OBJECT
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_ppi_callback,4,2               ## @ppi_callback
	.comm	_tpm_device_name,4,2            ## @tpm_device_name
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_DSM"

	.comm	_ACPI_TYPE_PACKAGE,4,2          ## @ACPI_TYPE_PACKAGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%llu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tpm_show_ppi_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpm_show_ppi_request
_tpm_show_ppi_request:                  ; @tpm_show_ppi_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #32]
Lloh6:
	adrp	x8, _TPM_PPI_FN_GETREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPM_PPI_FN_GETREQ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x20, sp, #56
	add	x0, sp, #56
	bl	_ppi_assign_params
	str	x20, [sp, #40]
Lloh9:
	adrp	x8, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ACPI_ROOT_OBJECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_ROOT_OBJECT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _ppi_callback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ppi_callback@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _tpm_device_name@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tpm_device_name@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	add	x5, sp, #52
	bl	_acpi_walk_namespace
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh24:
	adrp	x8, _ENXIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w0, [sp, #52]
Lloh26:
	adrp	x8, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #32
	add	x3, sp, #8
	bl	_acpi_evaluate_object_typed
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.3:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh36:
	adrp	x10, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh37:
	ldr	x10, [x10, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.8:
	cbz	x9, LBB0_10
; %bb.9:
Lloh39:
	adrp	x8, _EFAULT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
LBB0_11:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_13:
	bl	_kfree
	b	LBB0_5
LBB0_14:
Lloh43:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str.1@PAGE
Lloh47:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	bl	_scnprintf
	mov	x19, x0
	ldr	x0, [sp, #8]
	b	LBB0_13
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_TPM_PPI_FN_GETREQ,4,2          ; @TPM_PPI_FN_GETREQ
	.comm	_ACPI_TYPE_DEVICE,4,2           ; @ACPI_TYPE_DEVICE
	.comm	_ACPI_ROOT_OBJECT,4,2           ; @ACPI_ROOT_OBJECT
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_ppi_callback,4,2               ; @ppi_callback
	.comm	_tpm_device_name,4,2            ; @tpm_device_name
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_DSM"

	.comm	_ACPI_TYPE_PACKAGE,4,2          ; @ACPI_TYPE_PACKAGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%llu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tpm_show_ppi_request
.subsections_via_symbols
