	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ut_copy_ipackage_to_ipackage
_acpi_ut_copy_ipackage_to_ipackage:     ## @acpi_ut_copy_ipackage_to_ipackage
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ut_copy_ipackage_to_ipackage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	8(%rbx), %rax
	shlq	$32, %rax
	movabsq	$4294967296, %rdi               ## imm = 0x100000000
	addq	%rax, %rdi
	shrq	$29, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ALLOCATE_ZEROED
	movl	%eax, (%r15)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_acpi_ut_copy_ielement_to_ielement@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_acpi_ut_walk_package_tree
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_acpi_ut_remove_reference
LBB0_4:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ut_copy_ipackage_to_ipackage,4,2 ## @ut_copy_ipackage_to_ipackage
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Package allocation failure"

	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_acpi_ut_copy_ielement_to_ielement,4,2 ## @acpi_ut_copy_ielement_to_ielement
	.no_dead_strip	_acpi_ut_copy_ipackage_to_ipackage
.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_ipackage_to_ipackage
_acpi_ut_copy_ipackage_to_ipackage:     ; @acpi_ut_copy_ipackage_to_ipackage
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ut_copy_ipackage_to_ipackage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_copy_ipackage_to_ipackage@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	x8, [x21, #8]
	str	x8, [x19, #8]
	ldr	x8, [x21, #8]
	mov	x9, #4294967296
	add	x8, x9, x8, lsl #32
	lsr	x0, x8, #29
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ALLOCATE_ZEROED
	str	w0, [x19]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh5:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh8:
	adrp	x8, _acpi_ut_copy_ielement_to_ielement@GOTPAGE
Lloh9:
	ldr	x8, [x8, _acpi_ut_copy_ielement_to_ielement@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_acpi_ut_walk_package_tree
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_acpi_ut_remove_reference
LBB0_4:
	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
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ut_copy_ipackage_to_ipackage,4,2 ; @ut_copy_ipackage_to_ipackage
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Package allocation failure"

	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_acpi_ut_copy_ielement_to_ielement,4,2 ; @acpi_ut_copy_ielement_to_ielement
	.no_dead_strip	_acpi_ut_copy_ipackage_to_ipackage
.subsections_via_symbols
