	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_wtx_abort
_tpm_wtx_abort:                         ## @tpm_wtx_abort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_TPM_VL_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wait_and_send
	movq	_TPM_CTRL_WTX_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wait_and_send
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wait_and_send
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wait_and_send
	movq	_number_of_wtx@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_TPM_WTX_MSLEEP_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Aborting WTX\n"

	.comm	_TPM_VL_VER,4,2                 ## @TPM_VL_VER
	.comm	_TPM_CTRL_WTX_ABORT,4,2         ## @TPM_CTRL_WTX_ABORT
	.comm	_number_of_wtx,8,3              ## @number_of_wtx
	.comm	_TPM_WTX_MSLEEP_TIME,4,2        ## @TPM_WTX_MSLEEP_TIME
	.no_dead_strip	_tpm_wtx_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpm_wtx_abort
_tpm_wtx_abort:                         ; @tpm_wtx_abort
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh2:
	adrp	x8, _TPM_VL_VER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TPM_VL_VER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wait_and_send
Lloh5:
	adrp	x8, _TPM_CTRL_WTX_ABORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TPM_CTRL_WTX_ABORT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wait_and_send
	mov	x0, x19
	mov	w1, #0
	bl	_wait_and_send
	mov	x0, x19
	mov	w1, #0
	bl	_wait_and_send
Lloh8:
	adrp	x8, _number_of_wtx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _number_of_wtx@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x8, _TPM_WTX_MSLEEP_TIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TPM_WTX_MSLEEP_TIME@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Aborting WTX\n"

	.comm	_TPM_VL_VER,4,2                 ; @TPM_VL_VER
	.comm	_TPM_CTRL_WTX_ABORT,4,2         ; @TPM_CTRL_WTX_ABORT
	.comm	_number_of_wtx,8,3              ; @number_of_wtx
	.comm	_TPM_WTX_MSLEEP_TIME,4,2        ; @TPM_WTX_MSLEEP_TIME
	.no_dead_strip	_tpm_wtx_abort
.subsections_via_symbols
