	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ut_copy_ielement_to_ielement
_acpi_ut_copy_ielement_to_ielement:     ## @acpi_ut_copy_ielement_to_ielement
	.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, %r12
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	movq	(%r12), %rcx
	movq	16(%r12), %rax
	movq	(%rax), %r13
	cmpl	$129, %ebx
	je	LBB0_8
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.2:
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	movq	%rcx, %r12
	movl	4(%r15), %edi
	callq	_acpi_ut_create_internal_object
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_acpi_ut_copy_simple_object
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:
	movq	%rbx, %rdi
	callq	_acpi_ut_remove_reference
	jmp	LBB0_12
LBB0_8:
	movq	%rcx, %rbx
	movl	(%r15), %edi
	callq	_acpi_ut_create_package_object
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movq	%rax, 8(%r12)
	movq	%rax, (%r13,%rbx,4)
	jmp	LBB0_12
LBB0_10:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_4:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_7:
	movq	$0, (%r13,%rcx,4)
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, (%r13,%r12,4)
LBB0_12:
	movl	%r14d, %eax
	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	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.no_dead_strip	_acpi_ut_copy_ielement_to_ielement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ut_copy_ielement_to_ielement
_acpi_ut_copy_ielement_to_ielement:     ; @acpi_ut_copy_ielement_to_ielement
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_ACPI_FUNCTION_ENTRY
	ldr	x8, [x21]
	ldr	x9, [x21, #16]
	ldr	x9, [x9]
	add	x23, x9, x8, lsl #2
	cmp	w22, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w22, #128
	b.ne	LBB0_8
; %bb.2:
	cbz	x20, LBB0_10
; %bb.3:
	ldr	w0, [x20, #4]
	bl	_acpi_ut_create_internal_object
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_acpi_ut_copy_simple_object
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	w0, LBB0_11
; %bb.5:
	mov	x0, x21
	bl	_acpi_ut_remove_reference
	b	LBB0_12
LBB0_6:
	ldr	w0, [x20]
	bl	_acpi_ut_create_package_object
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x20]
	str	w8, [x0]
	str	x0, [x21, #8]
	str	x0, [x23]
	b	LBB0_12
LBB0_8:
Lloh3:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_10:
	str	xzr, [x23]
	b	LBB0_12
LBB0_11:
	str	x21, [x23]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.no_dead_strip	_acpi_ut_copy_ielement_to_ielement
.subsections_via_symbols
