	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_show_ppi_transition_action
_tpm_show_ppi_transition_action:        ## @tpm_show_ppi_transition_action
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PPI_VERSION_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, -192(%rbp)
	movq	$0, -176(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	movq	%rax, -200(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -160(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -152(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -144(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -136(%rbp)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -128(%rbp)
	movl	$4, -216(%rbp)
	movq	_TPM_PPI_FN_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ppi_assign_params
	movq	%rbx, -208(%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	-164(%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	-164(%rbp), %edi
	movq	_ACPI_TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.5(%rip), %rsi
	leaq	-216(%rbp), %rdx
	leaq	-200(%rbp), %rcx
	callq	_acpi_evaluate_object_typed
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	-200(%rbp), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_strncpy
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
LBB0_7:
	movq	_TPM_PPI_FN_GETACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	-200(%rbp), %rdi
	callq	_kfree
	movl	(%r12), %eax
	movl	%eax, -192(%rbp)
	movq	$0, -200(%rbp)
	movl	-164(%rbp), %edi
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.5(%rip), %rsi
	leaq	-216(%rbp), %rdx
	leaq	-200(%rbp), %rcx
	callq	_acpi_evaluate_object_typed
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-200(%rbp), %rax
	movl	(%rax), %ebx
	leaq	-160(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	decl	%ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %eax
	cmpl	%ecx, %ebx
	jl	LBB0_10
## %bb.9:
	leaq	-160(%rbp), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
LBB0_10:
	cltq
	movq	-160(%rbp,%rax,8), %r8
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_scnprintf
	movl	%eax, %ebx
	movq	-200(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PPI_VERSION_LEN,4,2            ## @PPI_VERSION_LEN
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"None"

L_.str.1:                               ## @.str.1
	.asciz	"Shutdown"

L_.str.2:                               ## @.str.2
	.asciz	"Reboot"

L_.str.3:                               ## @.str.3
	.asciz	"OS Vendor-specific"

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

	.comm	_TPM_PPI_FN_VERSION,4,2         ## @TPM_PPI_FN_VERSION
	.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
L_.str.5:                               ## @.str.5
	.asciz	"_DSM"

	.comm	_ACPI_TYPE_STRING,4,2           ## @ACPI_TYPE_STRING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.6:                               ## @.str.6
	.asciz	"1.2"

	.comm	_ACPI_TYPE_BUFFER,4,2           ## @ACPI_TYPE_BUFFER
	.comm	_TPM_PPI_FN_GETACT,4,2          ## @TPM_PPI_FN_GETACT
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.7:                               ## @.str.7
	.asciz	"%d: %s\n"

	.no_dead_strip	_tpm_show_ppi_transition_action
.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_transition_action
_tpm_show_ppi_transition_action:        ; @tpm_show_ppi_transition_action
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #176
	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, #-56]
Lloh3:
	adrp	x22, _PPI_VERSION_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PPI_VERSION_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #1
	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, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x21, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
	stp	xzr, xzr, [x29, #-200]
	ldrsw	x8, [x21]
	stp	x8, xzr, [x29, #-216]
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x29, #-160]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x29, #-144]
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
	stur	x8, [x29, #-128]
	mov	w8, #4
	stur	w8, [x29, #-184]
Lloh19:
	adrp	x8, _TPM_PPI_FN_VERSION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TPM_PPI_FN_VERSION@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	sub	x23, x29, #120
	sub	x0, x29, #120
	bl	_ppi_assign_params
	stur	x23, [x29, #-176]
Lloh22:
	adrp	x8, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _ACPI_ROOT_OBJECT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ACPI_ROOT_OBJECT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _ppi_callback@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ppi_callback@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
Lloh34:
	adrp	x8, _tpm_device_name@GOTPAGE
Lloh35:
	ldr	x8, [x8, _tpm_device_name@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
	sub	x5, x29, #164
	bl	_acpi_walk_namespace
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh37:
	adrp	x8, _ENXIO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldur	w0, [x29, #-164]
Lloh39:
	adrp	x8, _ACPI_TYPE_STRING@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ACPI_TYPE_STRING@GOTPAGEOFF]
Lloh41:
	ldr	w4, [x8]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x2, x29, #184
	sub	x3, x29, #216
	bl	_acpi_evaluate_object_typed
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_6
; %bb.3:
	ldur	x8, [x29, #-216]
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_strncpy
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
	stp	xzr, xzr, [x29, #-72]
LBB0_5:
Lloh46:
	adrp	x8, _TPM_PPI_FN_GETACT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TPM_PPI_FN_GETACT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	stur	w8, [x29, #-88]
	ldur	x0, [x29, #-216]
	bl	_kfree
	ldr	w8, [x21]
	stur	w8, [x29, #-208]
	stur	xzr, [x29, #-216]
	ldur	w0, [x29, #-164]
Lloh49:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh51:
	ldr	w4, [x8]
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x2, x29, #184
	sub	x3, x29, #216
	bl	_acpi_evaluate_object_typed
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_10
LBB0_6:
Lloh54:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh56:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh57:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldur	x8, [x29, #-216]
	ldr	w20, [x8]
	sub	x22, x29, #160
	sub	x0, x29, #160
	bl	_ARRAY_SIZE
	sub	w9, w0, #1
Lloh59:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh61:
	ldr	w21, [x8]
	mov	x8, x20
	cmp	w20, w9
	b.lt	LBB0_12
; %bb.11:
	sub	x0, x29, #160
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
LBB0_12:
	ldr	x4, [x22, w8, sxtw #3]
Lloh62:
	adrp	x2, l_.str.7@PAGE
Lloh63:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_scnprintf
	mov	x19, x0
	ldur	x0, [x29, #-216]
	bl	_kfree
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_PPI_VERSION_LEN,4,2            ; @PPI_VERSION_LEN
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"None"

l_.str.1:                               ; @.str.1
	.asciz	"Shutdown"

l_.str.2:                               ; @.str.2
	.asciz	"Reboot"

l_.str.3:                               ; @.str.3
	.asciz	"OS Vendor-specific"

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

	.comm	_TPM_PPI_FN_VERSION,4,2         ; @TPM_PPI_FN_VERSION
	.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
l_.str.5:                               ; @.str.5
	.asciz	"_DSM"

	.comm	_ACPI_TYPE_STRING,4,2           ; @ACPI_TYPE_STRING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.6:                               ; @.str.6
	.asciz	"1.2"

	.comm	_ACPI_TYPE_BUFFER,4,2           ; @ACPI_TYPE_BUFFER
	.comm	_TPM_PPI_FN_GETACT,4,2          ; @TPM_PPI_FN_GETACT
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.7:                               ; @.str.7
	.asciz	"%d: %s\n"

	.no_dead_strip	_tpm_show_ppi_transition_action
.subsections_via_symbols
