	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_show_ppi_response
_tpm_show_ppi_response:                 ## @tpm_show_ppi_response
	.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_GETRSP@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_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	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_7
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_30
## %bb.6:
	movl	%ebx, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	-96(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_18
## %bb.8:
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	movq	8(%rax), %rcx
	cmpq	%rdx, %rcx
	jne	LBB0_18
## %bb.11:
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.12:
	movq	16(%rax), %r8
	cmpq	%rdx, %r8
	jne	LBB0_18
## %bb.13:
	cmpl	$-16, %r8d
	je	LBB0_24
## %bb.14:
	cmpl	$-15, %r8d
	je	LBB0_25
## %bb.15:
	testl	%r8d, %r8d
	jne	LBB0_26
## %bb.16:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %r8
	jmp	LBB0_17
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_19:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movq	-96(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_21:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	leaq	L_.str.9(%rip), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_24:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.3(%rip), %r8
	jmp	LBB0_17
LBB0_25:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.4(%rip), %r8
LBB0_17:
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_22:
	xorl	%eax, %eax
	callq	_scnprintf
LBB0_23:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_26:
	leal	-1(%r8), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.5(%rip), %rdx
	cmpl	$4094, %eax                     ## imm = 0xFFE
	ja	LBB0_28
## %bb.27:
	leaq	L_.str.6(%rip), %r9
	jmp	LBB0_29
LBB0_28:
	leaq	L_.str.7(%rip), %r9
LBB0_29:
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_scnprintf
	jmp	LBB0_23
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_TPM_PPI_FN_GETRSP,4,2          ## @TPM_PPI_FN_GETRSP
	.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	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%llu %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"0: Success"

L_.str.3:                               ## @.str.3
	.asciz	"0xFFFFFFF0: User Abort"

L_.str.4:                               ## @.str.4
	.asciz	"0xFFFFFFF1: BIOS Failure"

L_.str.5:                               ## @.str.5
	.asciz	"%llu %llu: %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"Corresponding TPM error"

L_.str.7:                               ## @.str.7
	.asciz	"Error"

L_.str.8:                               ## @.str.8
	.asciz	"%llu: %s\n"

L_.str.9:                               ## @.str.9
	.asciz	"No Recent Request"

	.no_dead_strip	_tpm_show_ppi_response
.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_response
_tpm_show_ppi_response:                 ; @tpm_show_ppi_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, #24]
	str	wzr, [sp, #40]
	mov	w8, #4
	str	w8, [sp, #48]
Lloh6:
	adrp	x8, _TPM_PPI_FN_GETRSP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPM_PPI_FN_GETRSP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x20, x29, #56
	sub	x0, x29, #56
	bl	_ppi_assign_params
	str	x20, [sp, #56]
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]
	sub	x5, x29, #60
	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:
	ldur	w0, [x29, #-60]
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, #48
	add	x3, sp, #24
	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_30
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	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_17
; %bb.8:
	cbz	w9, LBB0_10
; %bb.9:
Lloh39:
	adrp	x8, _EFAULT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
	ldr	x3, [x8, #8]
	cmp	x3, x9
	b.ne	LBB0_17
; %bb.11:
	cbz	w3, LBB0_20
; %bb.12:
	ldr	x8, [x8, #16]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.13:
	cmn	w8, #16
	b.eq	LBB0_21
; %bb.14:
	cmn	w8, #15
	b.eq	LBB0_22
; %bb.15:
	cbnz	w8, LBB0_24
; %bb.16:
Lloh41:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, l_.str.2@PAGE
Lloh45:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_17:
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_19:
	ldr	x0, [sp, #24]
	bl	_kfree
	b	LBB0_5
LBB0_20:
Lloh48:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, l_.str.9@PAGE
Lloh52:
	add	x8, x8, l_.str.9@PAGEOFF
	str	x8, [sp]
Lloh53:
	adrp	x2, l_.str.8@PAGE
Lloh54:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	b	LBB0_29
LBB0_21:
Lloh55:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x8, l_.str.3@PAGE
Lloh59:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh60:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x8, l_.str.4@PAGE
Lloh64:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_23:
	str	x8, [sp]
Lloh65:
	adrp	x2, l_.str.1@PAGE
Lloh66:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_24:
	sub	w9, w8, #1
Lloh67:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh68:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x10]
	cmp	w9, #4094
	b.hi	LBB0_26
; %bb.25:
Lloh70:
	adrp	x9, l_.str.6@PAGE
Lloh71:
	add	x9, x9, l_.str.6@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh72:
	adrp	x9, l_.str.7@PAGE
Lloh73:
	add	x9, x9, l_.str.7@PAGEOFF
LBB0_27:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh74:
	adrp	x2, l_.str.5@PAGE
Lloh75:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_28:
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_29:
	bl	_scnprintf
	mov	x19, x0
	b	LBB0_19
LBB0_30:
	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 AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_TPM_PPI_FN_GETRSP,4,2          ; @TPM_PPI_FN_GETRSP
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%llu %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"0: Success"

l_.str.3:                               ; @.str.3
	.asciz	"0xFFFFFFF0: User Abort"

l_.str.4:                               ; @.str.4
	.asciz	"0xFFFFFFF1: BIOS Failure"

l_.str.5:                               ; @.str.5
	.asciz	"%llu %llu: %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"Corresponding TPM error"

l_.str.7:                               ; @.str.7
	.asciz	"Error"

l_.str.8:                               ; @.str.8
	.asciz	"%llu: %s\n"

l_.str.9:                               ; @.str.9
	.asciz	"No Recent Request"

	.no_dead_strip	_tpm_show_ppi_response
.subsections_via_symbols
