	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_attach_data            ## -- Begin function acpi_ns_attach_data
	.p2align	4, 0x90
_acpi_ns_attach_data:                   ## @acpi_ns_attach_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rcx
	movq	_ACPI_TYPE_LOCAL_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.4:
	movq	_AE_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	(%rcx), %rcx
	cmpq	%r12, %rcx
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, %rcx
	jne	LBB0_5
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	callq	_acpi_ut_create_internal_object
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%r12, (%rax)
	movq	%r14, 8(%rax)
	leaq	8(%rbx), %rcx
	testq	%rbx, %rbx
	cmoveq	%r15, %rcx
	movq	%rax, (%rcx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_LOCAL_DATA,8,3       ## @ACPI_TYPE_LOCAL_DATA
	.comm	_AE_ALREADY_EXISTS,4,2          ## @AE_ALREADY_EXISTS
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_attach_data            ; -- Begin function acpi_ns_attach_data
	.p2align	2
_acpi_ns_attach_data:                   ; @acpi_ns_attach_data
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _ACPI_TYPE_LOCAL_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_TYPE_LOCAL_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x9, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _AE_ALREADY_EXISTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_ALREADY_EXISTS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x9
	ldr	x9, [x9]
	cmp	x9, x21
	ccmp	x9, x0, #0, eq
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22, #8]
	cbnz	x9, LBB0_2
; %bb.4:
	bl	_acpi_ut_create_internal_object
	cbz	x0, LBB0_7
LBB0_5:
	stp	x21, x20, [x0]
	add	x8, x22, #8
	cmp	x22, #0
	csel	x8, x19, x8, eq
	str	x0, [x8]
Lloh5:
	adrp	x8, _AE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x22, #0
	bl	_acpi_ut_create_internal_object
	cbnz	x0, LBB0_5
LBB0_7:
Lloh7:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_LOCAL_DATA,8,3       ; @ACPI_TYPE_LOCAL_DATA
	.comm	_AE_ALREADY_EXISTS,4,2          ; @AE_ALREADY_EXISTS
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
