	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_memory_device
_is_memory_device:                      ## @is_memory_device
	.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
	leaq	-16(%rbp), %rsi
	callq	_acpi_get_object_info
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	-16(%rbp), %rdi
	movq	_ACPI_VALID_HID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.3:
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	_ACPI_MEMORY_DEVICE_HID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	-16(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_2:
	callq	_kfree
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_VALID_HID,4,2             ## @ACPI_VALID_HID
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_ACPI_MEMORY_DEVICE_HID,4,2     ## @ACPI_MEMORY_DEVICE_HID
	.no_dead_strip	_is_memory_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_memory_device
_is_memory_device:                      ; @is_memory_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x1, sp, #8
	bl	_acpi_get_object_info
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ACPI_VALID_HID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_VALID_HID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ACPI_MEMORY_DEVICE_HID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_MEMORY_DEVICE_HID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_kfree
	b	LBB0_7
LBB0_6:
	bl	_kfree
Lloh9:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_VALID_HID,4,2             ; @ACPI_VALID_HID
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_ACPI_MEMORY_DEVICE_HID,4,2     ; @ACPI_MEMORY_DEVICE_HID
	.no_dead_strip	_is_memory_device
.subsections_via_symbols
