	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_wsmt_enabled
_test_wsmt_enabled:                     ## @test_wsmt_enabled
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_WSMT_EN_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dell_smbios_find_token
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_CLASS_TOKEN_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_buffer@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	%eax, 20(%rdi)
	movq	_SELECT_TOKEN_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %eax
	movq	(%r14), %rdi
	movq	8(%rdi), %rcx
	movl	%eax, (%rcx)
	movq	(%rdi), %rax
	movl	$99, (%rax)
	callq	_dell_smbios_smm_call
	movq	(%r14), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpl	$99, (%rcx)
	sete	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSMT_EN_TOKEN,4,2              ## @WSMT_EN_TOKEN
	.comm	_CLASS_TOKEN_READ,4,2           ## @CLASS_TOKEN_READ
	.comm	_buffer,8,3                     ## @buffer
	.comm	_SELECT_TOKEN_STD,4,2           ## @SELECT_TOKEN_STD
	.no_dead_strip	_test_wsmt_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_wsmt_enabled
_test_wsmt_enabled:                     ; @test_wsmt_enabled
	.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
Lloh0:
	adrp	x8, _WSMT_EN_TOKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSMT_EN_TOKEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dell_smbios_find_token
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _CLASS_TOKEN_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLASS_TOKEN_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x20, _buffer@GOTPAGE
Lloh7:
	ldr	x20, [x20, _buffer@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh8:
	adrp	x9, _SELECT_TOKEN_STD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SELECT_TOKEN_STD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19]
	ldr	x0, [x20]
	ldp	x10, x9, [x0]
	str	w8, [x9]
	mov	w8, #99
	str	w8, [x10]
	bl	_dell_smbios_smm_call
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #99
	cset	w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WSMT_EN_TOKEN,4,2              ; @WSMT_EN_TOKEN
	.comm	_CLASS_TOKEN_READ,4,2           ; @CLASS_TOKEN_READ
	.comm	_buffer,8,3                     ; @buffer
	.comm	_SELECT_TOKEN_STD,4,2           ; @SELECT_TOKEN_STD
	.no_dead_strip	_test_wsmt_enabled
.subsections_via_symbols
