	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ut_copy_simple_object
_acpi_ut_copy_simple_object:            ## @acpi_ut_copy_simple_object
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %r15d
	movq	8(%rsi), %r12
	movq	%rsi, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_ACPI_MEMCPY
	movl	%r15d, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	_AOPOBJ_STATIC_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.9:
	movl	8(%r14), %edi
	incl	%edi
	callq	_ACPI_ALLOCATE
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	incl	%edx
	jmp	LBB0_7
LBB0_13:
	movl	$129, %edi
	callq	_acpi_ut_add_reference
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	callq	_acpi_os_create_mutex
	jmp	LBB0_16
LBB0_11:
	movl	4(%r14), %eax
	movq	_ACPI_REFCLASS_TABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.12:
	movl	(%r14), %edi
	callq	_acpi_ut_add_reference
	jmp	LBB0_17
LBB0_15:
	movq	_ACPI_NO_UNIT_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_acpi_os_create_semaphore
LBB0_16:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_17
LBB0_2:
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.3:
	movl	8(%r14), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.4:
	callq	_ACPI_ALLOCATE
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rsi
	movl	8(%r14), %edx
LBB0_7:
	movq	%rax, %rdi
	callq	_ACPI_MEMCPY
LBB0_17:
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_AOPOBJ_STATIC_POINTER,4,2      ## @AOPOBJ_STATIC_POINTER
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_ACPI_REFCLASS_TABLE,4,2        ## @ACPI_REFCLASS_TABLE
	.comm	_ACPI_NO_UNIT_LIMIT,4,2         ## @ACPI_NO_UNIT_LIMIT
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_ut_copy_simple_object
.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_simple_object
_acpi_ut_copy_simple_object:            ; @acpi_ut_copy_simple_object
	.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, x1
	mov	x19, x0
	ldr	w21, [x1, #16]
	ldr	x22, [x1, #8]
	mov	x0, x1
	mov	x1, x19
	mov	w2, #24
	bl	_ACPI_MEMCPY
	str	w21, [x20, #16]
	str	x22, [x20, #8]
Lloh0:
	adrp	x8, _AOPOBJ_STATIC_POINTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AOPOBJ_STATIC_POINTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	sub	w8, w10, #128
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.3:
	ldr	w8, [x19, #8]
	add	w0, w8, #1
	bl	_ACPI_ALLOCATE
	str	x0, [x20]
	cbz	x0, LBB0_19
; %bb.4:
	ldr	x1, [x19]
	ldr	w8, [x19, #8]
	add	w2, w8, #1
	b	LBB0_15
LBB0_5:
	mov	w0, #129
	bl	_acpi_ut_add_reference
	b	LBB0_16
LBB0_6:
	mov	x0, x20
	bl	_acpi_os_create_mutex
	b	LBB0_10
LBB0_7:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _ACPI_REFCLASS_TABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_REFCLASS_TABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.8:
	ldr	w0, [x19]
	bl	_acpi_ut_add_reference
	b	LBB0_16
LBB0_9:
Lloh8:
	adrp	x8, _ACPI_NO_UNIT_LIMIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_NO_UNIT_LIMIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x20
	bl	_acpi_os_create_semaphore
LBB0_10:
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbnz	w0, LBB0_18
	b	LBB0_16
LBB0_11:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	w0, [x19, #8]
	cbz	w0, LBB0_16
; %bb.13:
	bl	_ACPI_ALLOCATE
	str	x0, [x20]
	cbz	x0, LBB0_19
; %bb.14:
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
LBB0_15:
	bl	_ACPI_MEMCPY
LBB0_16:
Lloh11:
	adrp	x8, _AE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_17:
	ldr	w19, [x8]
LBB0_18:
	mov	x0, x19
	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
LBB0_19:
Lloh13:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_AOPOBJ_STATIC_POINTER,4,2      ; @AOPOBJ_STATIC_POINTER
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_ACPI_REFCLASS_TABLE,4,2        ; @ACPI_REFCLASS_TABLE
	.comm	_ACPI_NO_UNIT_LIMIT,4,2         ; @ACPI_NO_UNIT_LIMIT
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_ut_copy_simple_object
.subsections_via_symbols
