	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function surface_button_check_MSHW0040
_surface_button_check_MSHW0040:         ## @surface_button_check_MSHW0040
	.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	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_MSHW0040_DSM_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MSHW0040_DSM_GET_OMPR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MSHW0040_DSM_UUID@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	callq	_acpi_evaluate_dsm_typed
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rbx
	movq	%rax, %rdi
	callq	_ACPI_FREE
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dev_dbg
	xorl	%eax, %eax
	testq	%rbx, %rbx
	sete	%al
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSHW0040_DSM_UUID,4,2          ## @MSHW0040_DSM_UUID
	.comm	_MSHW0040_DSM_REVISION,4,2      ## @MSHW0040_DSM_REVISION
	.comm	_MSHW0040_DSM_GET_OMPR,4,2      ## @MSHW0040_DSM_GET_OMPR
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OEM Platform Revision %llu\n"

	.no_dead_strip	_surface_button_check_MSHW0040
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function surface_button_check_MSHW0040
_surface_button_check_MSHW0040:         ; @surface_button_check_MSHW0040
	.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, #4]
Lloh0:
	adrp	x8, _MSHW0040_DSM_REVISION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSHW0040_DSM_REVISION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _MSHW0040_DSM_GET_OMPR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSHW0040_DSM_GET_OMPR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x1, _MSHW0040_DSM_UUID@GOTPAGE
Lloh10:
	ldr	x1, [x1, _MSHW0040_DSM_UUID@GOTPAGEOFF]
	mov	x4, #0
	bl	_acpi_evaluate_dsm_typed
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x20, [x0]
	bl	_ACPI_FREE
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	cmp	x20, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSHW0040_DSM_UUID,4,2          ; @MSHW0040_DSM_UUID
	.comm	_MSHW0040_DSM_REVISION,4,2      ; @MSHW0040_DSM_REVISION
	.comm	_MSHW0040_DSM_GET_OMPR,4,2      ; @MSHW0040_DSM_GET_OMPR
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OEM Platform Revision %llu\n"

	.no_dead_strip	_surface_button_check_MSHW0040
.subsections_via_symbols
