	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_check_for_predefined_name ## -- Begin function acpi_ns_check_for_predefined_name
	.p2align	4, 0x90
_acpi_ns_check_for_predefined_name:     ## @acpi_ns_check_for_predefined_name
	.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
	movq	(%rdi), %rdi
	cmpb	$95, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	_predefined_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_8
## %bb.2:
	callq	_ACPI_COMPARE_NAME
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	_ACPI_RTYPE_PACKAGE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	setne	%al
	shlq	$4, %rax
	movq	24(%rbx,%rax), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %rbx
	addq	$16, %rbx
	movq	(%r14), %rdi
	callq	_ACPI_COMPARE_NAME
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_predefined_names,8,3           ## @predefined_names
	.comm	_ACPI_RTYPE_PACKAGE,4,2         ## @ACPI_RTYPE_PACKAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_check_for_predefined_name ; -- Begin function acpi_ns_check_for_predefined_name
	.p2align	2
_acpi_ns_check_for_predefined_name:     ; @acpi_ns_check_for_predefined_name
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0]
	ldrb	w8, [x0]
	cmp	w8, #95
	b.ne	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _predefined_names@GOTPAGE
Lloh1:
	ldr	x8, [x8, _predefined_names@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x1, [x20, #8]
	ldr	x8, [x1]
	cbz	x8, LBB0_6
; %bb.2:
	bl	_ACPI_COMPARE_NAME
	cbnz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x21, _ACPI_RTYPE_PACKAGE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ACPI_RTYPE_PACKAGE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w8, ne
	add	x8, x20, w8, uxtw #4
	ldr	x1, [x8, #24]
	ldr	x9, [x1]
	cbz	x9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x8, #16
	ldr	x0, [x19]
	bl	_ACPI_COMPARE_NAME
	cbz	x0, LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_predefined_names,8,3           ; @predefined_names
	.comm	_ACPI_RTYPE_PACKAGE,4,2         ; @ACPI_RTYPE_PACKAGE
.subsections_via_symbols
