	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_device_check_MSHW0040
_soc_device_check_MSHW0040:             ## @soc_device_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ACPI_HANDLE
	movq	_MSHW0040_DSM_REVISION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MSHW0040_DSM_GET_OMPR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_MSHW0040_DSM_UUID@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%r8d, %r8d
	callq	_acpi_evaluate_dsm_typed
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r15
	movq	%rax, %rdi
	callq	_ACPI_FREE
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OEM Platform Revision %llu\n"

	.no_dead_strip	_soc_device_check_MSHW0040
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_device_check_MSHW0040
_soc_device_check_MSHW0040:             ; @soc_device_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
	bl	_ACPI_HANDLE
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_3
; %bb.1:
	ldr	x20, [x0]
	bl	_ACPI_FREE
	cbz	x20, LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OEM Platform Revision %llu\n"

	.no_dead_strip	_soc_device_check_MSHW0040
.subsections_via_symbols
