	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ex_store_object_to_index
_acpi_ex_store_object_to_index:         ## @acpi_ex_store_object_to_index
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ex_store_object_to_index@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	(%r14), %eax
	cmpl	$131, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	movq	24(%r14), %rax
	movq	(%rax), %r15
	movl	(%r12), %eax
	movq	_ACPI_TYPE_LOCAL_REFERENCE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.3:
	movl	32(%r12), %eax
	movq	_ACPI_REFCLASS_TABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.4:
	movl	%ebx, %r13d
	movq	%r12, %rdi
	callq	_acpi_ut_add_reference
	movq	%r12, -48(%rbp)
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_18
LBB0_5:
	movq	16(%r14), %r15
	movl	(%r15), %eax
	orl	$4, %eax
	cmpl	$132, %eax
	je	LBB0_7
## %bb.6:
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_7:
	movl	(%r12), %eax
	cmpl	$132, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$130, %eax
	je	LBB0_24
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_23
LBB0_10:
	movq	(%r12), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_25
LBB0_12:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_acpi_ut_copy_iobject_to_iobject
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%ebx, %r13d
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_18
LBB0_14:
	movl	%ebx, %r13d
	testq	%r15, %r15
	je	LBB0_18
LBB0_15:
	movq	16(%r14), %rax
	cmpl	$0, 4(%rax)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_acpi_ut_remove_reference
	incl	%ebx
	movq	16(%r14), %rax
	cmpl	4(%rax), %ebx
	jl	LBB0_17
LBB0_18:
	movq	-48(%rbp), %rax
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movq	16(%r14), %rax
	cmpl	$2, 4(%rax)
	jl	LBB0_22
## %bb.19:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	callq	_acpi_ut_add_reference
	incl	%ebx
	movq	16(%r14), %rax
	cmpl	4(%rax), %ebx
	jl	LBB0_20
LBB0_22:
	movl	%r13d, %ebx
	jmp	LBB0_25
LBB0_23:
	movq	%r12, %rdi
	callq	_acpi_ut_get_object_type_name
	movl	%eax, %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	xorl	%eax, %eax
LBB0_24:
	movq	(%r15), %rcx
	movq	8(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_25:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ex_store_object_to_index,4,2   ## @ex_store_object_to_index
	.comm	_ACPI_TYPE_LOCAL_REFERENCE,4,2  ## @ACPI_TYPE_LOCAL_REFERENCE
	.comm	_ACPI_REFCLASS_TABLE,4,2        ## @ACPI_REFCLASS_TABLE
	.comm	_AE_AML_OPERAND_TYPE,4,2        ## @AE_AML_OPERAND_TYPE
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Target is not a Package or BufferField"

	.no_dead_strip	_acpi_ex_store_object_to_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ex_store_object_to_index
_acpi_ex_store_object_to_index:         ; @acpi_ex_store_object_to_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _ex_store_object_to_index@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ex_store_object_to_index@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	w8, [x20]
	cmp	w8, #131
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x20, #24]
	ldr	x21, [x8]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
	ldr	w8, [x22, #32]
Lloh9:
	adrp	x9, _ACPI_REFCLASS_TABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACPI_REFCLASS_TABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x22
	bl	_acpi_ut_add_reference
	str	x22, [sp, #8]
	b	LBB0_14
LBB0_5:
	ldr	x21, [x20, #16]
	ldr	w8, [x21]
	orr	w8, w8, #0x4
	cmp	w8, #132
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_7:
	ldr	w8, [x22]
	cmp	w8, #132
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #130
	b.eq	LBB0_22
; %bb.9:
	cmp	w8, #128
	b.ne	LBB0_21
LBB0_10:
	ldr	x8, [x22]
	ldr	w8, [x8]
	b	LBB0_22
LBB0_11:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh17:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	b	LBB0_23
LBB0_12:
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x23
	bl	_acpi_ut_copy_iobject_to_iobject
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	w0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_return_ACPI_STATUS
LBB0_14:
	cbz	x21, LBB0_18
; %bb.15:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	w22, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_acpi_ut_remove_reference
	add	w22, w22, #1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #4]
	cmp	w22, w8
	b.lt	LBB0_17
LBB0_18:
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #24]
	str	x8, [x9]
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.le	LBB0_23
; %bb.19:
	mov	w21, #1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_acpi_ut_add_reference
	add	w21, w21, #1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #4]
	cmp	w21, w8
	b.lt	LBB0_20
	b	LBB0_23
LBB0_21:
	mov	x0, x22
	bl	_acpi_ut_get_object_type_name
	bl	_ACPI_ERROR
Lloh20:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	mov	w8, #0
LBB0_22:
	ldr	x9, [x21]
	ldr	x10, [x20, #8]
	str	w8, [x9, x10, lsl #2]
LBB0_23:
	mov	x0, x19
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ex_store_object_to_index,4,2   ; @ex_store_object_to_index
	.comm	_ACPI_TYPE_LOCAL_REFERENCE,4,2  ; @ACPI_TYPE_LOCAL_REFERENCE
	.comm	_ACPI_REFCLASS_TABLE,4,2        ; @ACPI_REFCLASS_TABLE
	.comm	_AE_AML_OPERAND_TYPE,4,2        ; @AE_AML_OPERAND_TYPE
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Target is not a Package or BufferField"

	.no_dead_strip	_acpi_ex_store_object_to_index
.subsections_via_symbols
